dify/web/app/(commonLayout)/explore/layout.tsx
Stephen Zhou 6d0e36479b
refactor(i18n): use JSON with flattened key and namespace (#30114)
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-29 14:52:32 +08:00

19 lines
526 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)