import { getUserProfile } from "@/src/lib/auth/get-user-profile"; import { BarChart3, HelpCircle, LayoutDashboard, Newspaper, Settings, Users } from "lucide-react"; import { redirect } from "next/navigation"; import Image from 'next/image'; export const AdminSideBar = async () => { const user = await getUserProfile(); if (!user) { redirect("/login"); } return ( ); }; // Componentes Auxiliares para Limpeza de Código const NavItem = ({ icon, label, active = false }: { icon: any, label: string, active?: boolean }) => (
{icon} {label}
); const ActivityItem = ({ user, action }: { user: string, action: string }) => (

{user} {action}

);