'use client' import React, { FC, useState } from 'react'; import dynamic from 'next/dynamic'; import { useSelectedLayoutSegment } from 'next/navigation'; import { Link } from '../../../navigation'; type HeaderMenuMobileProps = { locale: string; linkConfig: { path: string, title: string }[]; }; const AuthLinks = dynamic(() => import('./HeaderAuthLinks'), { ssr: false }); export const HeaderMobileMenu: FC = ({ locale, linkConfig }) => { const [showMobileMenu, setShowMobileMenu] = useState(false); const selectedLayoutSegment = useSelectedLayoutSegment(); const pathname = selectedLayoutSegment || ''; return ( <>
setShowMobileMenu(!showMobileMenu)}>
{showMobileMenu ? (
    {linkConfig.map(({ path, title }) => (
  • {title}
  • ))}
) : null} ); };