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
+17
View File
@@ -0,0 +1,17 @@
'use client'
import { useEffect, useState } from 'react'
/**
* Returns true only after the component has mounted on the client. Used to gate
* consent UI (CookieBanner, CookieButton) so it renders nothing during SSR /
* first paint — preventing the React 19 / Next hydration mismatch that projects
* were working around with their own setTimeout-based ConsentWrapper. Built into
* the components now, so no project wrapper is needed.
*/
export function useIsMounted(): boolean {
const [mounted, setMounted] = useState(false)
useEffect(() => {
setMounted(true)
}, [])
return mounted
}