import { createContext } from "react";


export interface Task {
  id: number;
  title?: string;
  completed?: boolean;
  [key: string]: unknown;
}

export interface User {
  name: string;
  lastname: string;
  role: string;
  email: string;
  phone: string | null;
  created_at: string;
  tasks: Task[];
}

export interface AuthContextType {
  user: User | null;
  update: () => void;
}

export const AuthContext = createContext<AuthContextType | null>(null);

