mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 11:55:05 +03:00
* show cms blog posts in www * remove contentlayer from www * outputFileTracingExcludes * update remotePatterns * fetch cms posts server-side with revalidation * add cms env vars to turbo.json * add www env vars to turbo.json * include cms posts in www sitemap * add migration to remove image from cms post * update cms meta image mapping in www
25 lines
529 B
TypeScript
25 lines
529 B
TypeScript
'use client'
|
|
|
|
import { IS_PLATFORM, PageTelemetry } from 'common'
|
|
import { useConsentToast } from 'ui-patterns/consent'
|
|
import { API_URL } from '~/lib/constants'
|
|
|
|
interface ConsentWrapperProps {
|
|
children: React.ReactNode
|
|
}
|
|
|
|
export function ConsentWrapper({ children }: ConsentWrapperProps) {
|
|
const { hasAcceptedConsent } = useConsentToast()
|
|
|
|
return (
|
|
<>
|
|
{children}
|
|
<PageTelemetry
|
|
API_URL={API_URL}
|
|
hasAcceptedConsent={hasAcceptedConsent}
|
|
enabled={IS_PLATFORM}
|
|
/>
|
|
</>
|
|
)
|
|
}
|