2025-03-14 18:54:17 +08:00
|
|
|
'use client'
|
|
|
|
import type { FC, PropsWithChildren } from 'react'
|
2023-05-25 16:59:47 +08:00
|
|
|
import React from 'react'
|
2025-03-14 18:54:17 +08:00
|
|
|
import { useTranslation } from 'react-i18next'
|
2023-05-25 16:59:47 +08:00
|
|
|
import ExploreClient from '@/app/components/explore'
|
2025-03-14 18:54:17 +08:00
|
|
|
import useDocumentTitle from '@/hooks/use-document-title'
|
2023-05-25 16:59:47 +08:00
|
|
|
|
2025-03-14 18:54:17 +08:00
|
|
|
const ExploreLayout: FC<PropsWithChildren> = ({ children }) => {
|
|
|
|
const { t } = useTranslation()
|
|
|
|
useDocumentTitle(t('common.menus.explore'))
|
2023-05-25 16:59:47 +08:00
|
|
|
return (
|
|
|
|
<ExploreClient>
|
|
|
|
{children}
|
|
|
|
</ExploreClient>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2025-03-14 18:54:17 +08:00
|
|
|
export default React.memo(ExploreLayout)
|