| | |
| | | import type { FC } from 'react' |
| | | import React from 'react' |
| | | import Script from 'next/script' |
| | | import { type UnsafeUnwrappedHeaders, headers } from 'next/headers' |
| | | import { headers } from 'next/headers' |
| | | import { IS_CE_EDITION } from '@/config' |
| | | |
| | | export enum GaType { |
| | |
| | | if (IS_CE_EDITION) |
| | | return null |
| | | |
| | | const nonce = process.env.NODE_ENV === 'production' ? (headers() as unknown as UnsafeUnwrappedHeaders).get('x-nonce') : '' |
| | | const nonce = process.env.NODE_ENV === 'production' ? headers().get('x-nonce') : '' |
| | | |
| | | return ( |
| | | <> |