mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
18 lines
370 B
TypeScript
18 lines
370 B
TypeScript
'use client'
|
|
|
|
import { useHydrateAtoms } from 'jotai/utils'
|
|
import { isMarketplacePlatformAtom } from './atoms'
|
|
|
|
export function HydrateClient({
|
|
isMarketplacePlatform = false,
|
|
children,
|
|
}: {
|
|
isMarketplacePlatform?: boolean
|
|
children: React.ReactNode
|
|
}) {
|
|
useHydrateAtoms([
|
|
[isMarketplacePlatformAtom, isMarketplacePlatform],
|
|
])
|
|
return <>{children}</>
|
|
}
|