Skip to content

ProfileContext

This file provides a context for managing the user's profile.

Interfaces

ProfileContextType

Defined in: src/contexts/ProfileContext.tsx:19

The context for managing the user's profile.

Properties

Property Type Description Defined in
profileId null | string The ID of the current profile. src/contexts/ProfileContext.tsx:20
setProfileId (id) => void A function for setting the current profile ID. src/contexts/ProfileContext.tsx:21

Variables

ProfileProvider

const ProfileProvider: React.FC<{
  children: ReactNode;
}>;

Defined in: src/contexts/ProfileContext.tsx:32

A provider for the ProfileContext.

Param

The props for the component.

Returns

The ProfileProvider component.

Functions

useProfile()

function useProfile(): ProfileContextType;

Defined in: src/contexts/ProfileContext.tsx:63

A hook for using the ProfileContext.

Returns

ProfileContextType

The ProfileContext.