Global

Members

(constant) AuthContext :Object

Context for managing authentication state and actions.
Type:
  • Object
Source:

(constant) AuthProvider

Provider component for managing authentication state and actions.
Source:

(constant) useAuth

Custom hook for accessing authentication context.
Source:

Methods

Alert(props) → {JSX.Element}

Alert component to display messages with different types (success or error). This component renders an alert message with either a success or error icon and corresponding styling based on the provided type prop. The alert is automatically dismissed after 5 seconds.
Parameters:
Name Type Description
props Object The properties passed to the component.
Properties
Name Type Description
message string The message to be displayed in the alert.
type 'success' | 'error' The type of alert (success or error).
Source:
Returns:
The JSX element representing the Alert component.
Type
JSX.Element
Examples
// Example usage of Alert component
<Alert message="Action was successful!" type="success" />
// Another example usage of Alert component
<Alert message="An error occurred!" type="error" />

module:HomePage() → {JSX.Element}

Renders the Home Page Component.
Source:
Returns:
The JSX element representing the Home Page Component.
Type
JSX.Element