UserContextProps interface represents the structure of the UserContext. It includes properties for the current user, a function to update the user, the update state, and a function to update the update state.

interface UserContextProps {
    setUpdate: Dispatch<SetStateAction<boolean>>;
    setUser: Dispatch<SetStateAction<null | User>>;
    update: boolean;
    user: null | User;
}

Properties

setUpdate: Dispatch<SetStateAction<boolean>>
setUser: Dispatch<SetStateAction<null | User>>
update: boolean
user: null | User