"use client" import {PropsWithChildren} from "react"; import {DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger} from "@/components/ui/dropdown-menu"; import {signOutAction} from "@/features/auth/auth.action"; import {redirect} from "next/navigation"; import {CircleUser, LogOut, ShieldHalf} from "lucide-react"; export type LoggedInDropdownProps = PropsWithChildren<{}> export const LoggedInDropdown = (props: LoggedInDropdownProps) => { return ( {props.children} { redirect("/dashboard/profile") }}>
Account
{ redirect("/dashboard/admin") }}>
Administration Panel
{ signOutAction() }}>
Log out
) }