"use client"; import { signOut } from "@/app/login/actions"; import { Button } from "poyraz-ui/atoms"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from "poyraz-ui/molecules"; import { LogOut, User } from "lucide-react"; import Image from "next/image"; import Link from "next/link"; import { usePathname } from "next/navigation"; type PortalShellProps = { children: React.ReactNode; user: { email: string; displayName: string; shortName: string; avatarUrl: string | null; }; }; export function PortalShell({ children, user }: PortalShellProps) { const pathname = usePathname(); return (
Cognis Cognis Portal

{user.displayName}

{user.email}

signOut()}> Çıkış Yap
{children}
); }