"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"; export const MenuPage = () => { const userStore = useUserStore(); const router = useRouter(); const [isSettingModalOpen, setIsSettingModalOpen] = useState(false); useEffect(() => { if (!userStore.user) { router.push("/"); } }, [userStore.user]); return ( <> {userStore.user && (
{userStore.user.login}
{userStore.user.status}
Избранное
Коллекции
История