Files
supabase/apps/docs/features/telemetry/telemetry.client.tsx
Alaister Young 2b419c70a1 chore: add usercentrics for consent management (#35384)
* chore: add usercentrics for consent management

* client component to make next.js happy

* address feedback

* move consent state to common

* fix import

* ensure page events are sent correctly

* add feature flag provider to ui library site

* fix ui lib 500 error

* skip in test env

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Jordi Enric <jordi.err@gmail.com>
2025-05-05 13:18:48 +08:00

20 lines
437 B
TypeScript

'use client'
import { IS_PLATFORM, PageTelemetry as PageTelemetryImpl } from 'common'
import { useConsentToast } from 'ui-patterns/consent'
import { API_URL } from '~/lib/constants'
const PageTelemetry = () => {
const { hasAcceptedConsent } = useConsentToast()
return (
<PageTelemetryImpl
API_URL={API_URL}
hasAcceptedConsent={hasAcceptedConsent}
enabled={IS_PLATFORM}
/>
)
}
export { PageTelemetry }