import { Suspense, useState } from 'react'; import dynamic from 'next/dynamic'; import { useTranslation } from 'react-i18next'; import ItemsTreeContentSkeleton from '../../ItemsTree/ItemsTreeContentSkeleton'; import { PageTreeHeader } from './PageTreeSubstance'; const PageTreeContent = dynamic( () => import('./PageTreeSubstance').then(mod => mod.PageTreeContent), { ssr: false, loading: ItemsTreeContentSkeleton }, ); export const PageTree = (): JSX.Element => { const { t } = useTranslation(); const [isWipPageShown, setIsWipPageShown] = useState(true); return ( // TODO : #139425 Match the space specification method to others // ref. https://redmine.weseek.co.jp/issues/139425

{t('Page Tree')}

{ setIsWipPageShown(!isWipPageShown) }} />
}>
); };