ProfileContext
This file provides a context for managing the user's profile.
Interfaces¶
ProfileContextType¶
Defined in: src/contexts/ProfileContext.tsx:21
The context for managing the user's profile.
Properties¶
| Property | Type | Description | Defined in |
|---|---|---|---|
profileId |
string | null |
The ID of the current profile. | src/contexts/ProfileContext.tsx:22 |
setProfileId |
(id) => void |
A function for setting the current profile ID. | src/contexts/ProfileContext.tsx:23 |
Variables¶
ProfileProvider¶
Defined in: src/contexts/ProfileContext.tsx:34
A provider for the ProfileContext.
Param¶
props
The props for the component.
Returns¶
The ProfileProvider component.
Functions¶
useProfile()¶
Defined in: src/contexts/ProfileContext.tsx:61
A hook for using the ProfileContext.
Returns¶
The ProfileContext.