mirror of
https://github.com/supabase/supabase.git
synced 2026-06-01 02:14:43 +08:00
* 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>
20 lines
437 B
TypeScript
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 }
|