Added richtext support, and helpers for proxy, llms route
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import { Cookie } from 'lucide-react'
|
||||
|
||||
import { useConsentContext } from './ConsentContext.js'
|
||||
import { useIsMounted } from './useIsMounted.js'
|
||||
|
||||
/**
|
||||
* Floating "cookie settings" button — lets visitors reopen the consent panel
|
||||
@@ -14,8 +15,12 @@ import { useConsentContext } from './ConsentContext.js'
|
||||
* replace the styling outright.
|
||||
*/
|
||||
export function CookieButton({ className }: { className?: string } = {}) {
|
||||
const isMounted = useIsMounted()
|
||||
const { decided, reopen } = useConsentContext()
|
||||
|
||||
// Render nothing until mounted — prevents hydration mismatch (no project
|
||||
// ConsentWrapper workaround needed).
|
||||
if (!isMounted) {return null}
|
||||
if (!decided) {return null}
|
||||
|
||||
const cls =
|
||||
|
||||
Reference in New Issue
Block a user