import { useLocation } from 'react-router-dom' import PrefetchLink from '@/components/PrefetchLink' import LocalisedText from '@/components/LocalisedText' import { menuOutline } from '@/components/TopNav' import SectionTitle from '@/components/common/SectionTitle' import MainArea from '@/components/layout/MainArea' import PageHead from '@/components/common/PageHead' import { useUITranslation } from '@/lib/useUITranslation' import type { FC } from 'react' import type { User } from '@/types' const MorePage: FC = () => { const location = useLocation () const { message } = useUITranslation ('shared') const menu = menuOutline ( { tag: null, wikiId: null, user: { } as User, pathName: location.pathname }) return ( {[...Array (Math.ceil (menu.length / 4)).keys ()].map (i => (
{menu.slice (4 * i, 4 * (i + 1)).map ((item, j) => (
{item.name}
    {item.subMenu .filter (subItem => (subItem.visible ?? true)) .map ((subItem, k) => ('name' in subItem && (
  • {subItem.name}
  • )))}
))}
))}
) } export default MorePage