"use client"; import { Card } from "flowbite-react"; import { useUserStore } from "#/store/auth"; import Link from "next/link"; import { useRouter } from "next/navigation"; import { SettingsModal } from "#/components/SettingsModal/SettingsModal"; import { useEffect, useState } from "react"; import Image from "next/image"; import { usePreferencesStore } from "#/store/preferences"; export const MenuPage = () => { const userStore = useUserStore(); const preferenceStore = usePreferencesStore(); const router = useRouter(); const [isSettingModalOpen, setIsSettingModalOpen] = useState(false); useEffect(() => { if (!userStore.user) { router.push("/"); } // eslint-disable-next-line react-hooks/exhaustive-deps }, [userStore.user]); return ( <> {userStore.user && (
{userStore.user.login}
{userStore.user.status}
Избранное
Коллекции
История