"use client"; import { Button } from "@/components/ui/button"; import { useToast } from "@/components/ui/use-toast"; import { routes } from "@/lib/routes"; import { signOut } from "@/server-actions/auth"; import { Loader2, LogOut, User } from "lucide-react"; import { useRouter } from "next/navigation"; import { useState } from "react"; export function UserMenu(props: { name: string | null; email: string | null; compact?: boolean; }) { const router = useRouter(); const { toast } = useToast(); const [isLoading, setIsLoading] = useState(false); return (
{props.name ?? "ShopSmart User"}
{props.email}