mirror of
https://github.com/supabase/supabase.git
synced 2026-05-31 09:52:58 +08:00
20 lines
432 B
TypeScript
20 lines
432 B
TypeScript
'use client'
|
|
|
|
import { IS_PLATFORM, PageTelemetry as PageTelemetryImpl } from 'common'
|
|
import { useConsent } from 'ui-patterns/ConsentToast'
|
|
import { API_URL } from '~/lib/constants'
|
|
|
|
const PageTelemetry = () => {
|
|
const { hasAcceptedConsent } = useConsent()
|
|
|
|
return (
|
|
<PageTelemetryImpl
|
|
API_URL={API_URL}
|
|
hasAcceptedConsent={hasAcceptedConsent}
|
|
enabled={IS_PLATFORM}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export { PageTelemetry }
|