Added richtext support, and helpers for proxy, llms route

This commit is contained in:
2026-10-09 16:44:28 +02:00
parent cca2b20c3d
commit c738435fe0
51 changed files with 934 additions and 11 deletions
+5
View File
@@ -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 =