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¶
Defined in: src/contexts/ProfileContext.tsx:32
A provider for the ProfileContext.
Param¶
The props for the component.
Returns¶
The ProfileProvider component.
Functions¶
useProfile()¶
Defined in: src/contexts/ProfileContext.tsx:63
A hook for using the ProfileContext.
Returns¶
The ProfileContext.