mirror of
https://github.com/langgenius/dify.git
synced 2026-07-23 20:18:40 +08:00
15 lines
514 B
TypeScript
15 lines
514 B
TypeScript
'use client'
|
|
import type { FC, PropsWithChildren } from 'react'
|
|
import * as React from 'react'
|
|
import { useTranslation } from 'react-i18next'
|
|
import ExploreClient from '@/app/components/explore'
|
|
import useDocumentTitle from '@/hooks/use-document-title'
|
|
|
|
const ExploreLayout: FC<PropsWithChildren> = ({ children }) => {
|
|
const { t } = useTranslation()
|
|
useDocumentTitle(t(($) => $['menus.explore'], { ns: 'common' }))
|
|
return <ExploreClient>{children}</ExploreClient>
|
|
}
|
|
|
|
export default React.memo(ExploreLayout)
|