mirror of
https://github.com/langgenius/dify.git
synced 2026-07-24 21:18:35 +08:00
18 lines
462 B
TypeScript
18 lines
462 B
TypeScript
'use client'
|
|
|
|
import AmplitudeProvider from '@/app/components/base/amplitude'
|
|
import { usePathname } from '@/next/navigation'
|
|
import { CookieYesConsentBridge } from './cookieyes-consent-bridge'
|
|
import { isCloudAnalyticsPath } from './request-boundary'
|
|
|
|
export function CloudAnalyticsRuntime() {
|
|
const pathname = usePathname()
|
|
|
|
return (
|
|
<>
|
|
<CookieYesConsentBridge />
|
|
<AmplitudeProvider active={isCloudAnalyticsPath(pathname)} />
|
|
</>
|
|
)
|
|
}
|