"use client"; import { cn } from "@/lib/utils"; import { Button } from "@/components/ui/button"; import { ScrollArea } from "@/components/ui/scroll-area"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { LayoutDashboard, Briefcase, Users, MessageSquare, Settings, Building2, BarChart3, Plus, } from "lucide-react"; import Link from "next/link"; import { usePathname } from "next/navigation"; interface CompanySidebarProps { className?: string; } export function CompanySidebar({ className }: CompanySidebarProps) { const pathname = usePathname(); const routes = [ { label: "Dashboard", icon: LayoutDashboard, href: "/dashboard/empresa", active: pathname === "/dashboard/empresa", }, { label: "Minhas Vagas", icon: Briefcase, href: "/dashboard/empresa/vagas", active: pathname?.startsWith("/dashboard/empresa/vagas"), }, { label: "Candidaturas", icon: Users, href: "/dashboard/empresa/candidaturas", active: pathname?.startsWith("/dashboard/empresa/candidaturas"), }, { label: "Mensagens", icon: MessageSquare, href: "/dashboard/empresa/mensagens", active: pathname?.startsWith("/dashboard/empresa/mensagens"), }, { label: "Relatórios", icon: BarChart3, href: "/dashboard/empresa/relatorios", active: pathname?.startsWith("/dashboard/empresa/relatorios"), }, { label: "Perfil da Empresa", icon: Building2, href: "/dashboard/empresa/perfil", active: pathname?.startsWith("/dashboard/empresa/perfil"), }, { label: "Configurações", icon: Settings, href: "/dashboard/empresa/configuracoes", active: pathname?.startsWith("/dashboard/empresa/configuracoes"), }, ]; return (
Empresa