import { Suspense } from 'react'; import dynamic from 'next/dynamic'; import Link from 'next/link'; import { useTranslation } from 'react-i18next'; import { useSWRxPageByPath } from '~/stores/page'; import { SidebarHeaderReloadButton } from '../SidebarHeaderReloadButton'; import DefaultContentSkeleton from '../Skeleton/DefaultContentSkeleton'; const CustomSidebarContent = dynamic(() => import('./CustomSidebarSubstance').then(mod => mod.CustomSidebarSubstance), { ssr: false }); export const CustomSidebar = (): JSX.Element => { const { t } = useTranslation(); const { mutate, isLoading } = useSWRxPageByPath('/Sidebar'); return (

{t('CustomSidebar')} { !isLoading && edit }

{ !isLoading && mutate()} /> }
}>
); };