CookieBanner component shows a banner at the bottom of the screen
prompting the user to accept cookies if they haven't already given consent.
Behavior:
- On mount, checks localStorage for 'cookieConsent' key.
- If consent not found, shows the banner.
- When user clicks "Accept", stores consent in localStorage and hides the banner.
- Description:
- CookieBanner component shows a banner at the bottom of the screen prompting the user to accept cookies if they haven't already given consent. Behavior: - On mount, checks localStorage for 'cookieConsent' key. - If consent not found, shows the banner. - When user clicks "Accept", stores consent in localStorage and hides the banner.
- Source:
Returns:
The cookie consent banner or null if consent is already given.
- Type
- JSX.Element | null