mirror of
https://github.com/supabase/supabase.git
synced 2026-07-07 13:59:37 +08:00
12 lines
294 B
TypeScript
12 lines
294 B
TypeScript
import { useRouter } from 'next/router'
|
|
import { isBrowser } from '../helpers'
|
|
|
|
export function useTelemetryProps() {
|
|
const { locale } = useRouter()
|
|
|
|
return {
|
|
screenResolution: isBrowser ? `${window.innerWidth}x${window.innerHeight}` : undefined,
|
|
language: locale ?? 'en-US',
|
|
}
|
|
}
|