'use client'; import { Link, Icon } from '@theme/components'; import { useSession } from 'next-auth/react'; import { ROUTES } from '@theme/routes'; import clsx from 'clsx'; import { closeMobileMenu } from '@akinon/next/redux/reducers/header'; import { useAppDispatch } from '@akinon/next/redux/hooks'; import { useLocalization } from '@akinon/next/hooks'; interface UserMenuProps { isMobile: boolean; } export const UserMenu = (props: UserMenuProps) => { const { isMobile } = props; const { data: session, status } = useSession(); const { t } = useLocalization(); const dispatch = useAppDispatch(); const MenuItems = [ { url: ROUTES.AUTH, label: t('common.header.login'), dataTestId: `header-login${isMobile ? '-mobile' : ''}` }, { url: ROUTES.AUTH, label: t('common.header.signup'), dataTestId: `header-signup${isMobile ? '-mobile' : ''}` } ]; return (
); };