"use client" import { useIntl } from "react-intl" import { logout } from "@/constants/routes/handleAuth" import useDropdownStore from "@/stores/main-menu" import Divider from "@/components/TempDesignSystem/Divider" import Link from "@/components/TempDesignSystem/Link" import Title from "@/components/TempDesignSystem/Text/Title" import useLang from "@/hooks/useLang" import styles from "./my-pages-mobile-dropdown.module.css" import type { ReactNode } from "react" import { DropdownTypeEnum } from "@/types/components/dropdown/dropdown" import type { MyPagesLink } from "@/components/MyPages/menuItems" export default function MyPagesMobileDropdown({ primaryLinks, secondaryLinks, }: { primaryLinks: MyPagesLink[] secondaryLinks: MyPagesLink[] }) { const intl = useIntl() const { toggleDropdown, isMyPagesMobileMenuOpen } = useDropdownStore() if (primaryLinks.length === 0 && secondaryLinks.length === 0) { return null } const handleOnClick = () => toggleDropdown(DropdownTypeEnum.MyPagesMobileMenu) return ( ) } function List({ children }: { children: ReactNode }) { return ( <>