'use client'

import {
  Building2Icon,
  DollarSign,
  GraduationCap,
  LayoutDashboard,
  UsersIcon
} from 'lucide-react'

import { NavMain } from '@/components/nav-main'
import {
  Sidebar,
  SidebarContent,
  SidebarRail
} from '@repo/ui/components/ui/sidebar'

const navMain = [
  {
    title: 'Visão geral',
    url: '/',
    icon: LayoutDashboard
  },
  {
    title: 'Pagamentos',
    url: '/payments',
    icon: DollarSign
  },
  {
    title: 'Matrículas',
    url: '/enrollments',
    icon: GraduationCap
  },
  {
    title: 'Usuários',
    url: '/users',
    icon: UsersIcon
  },
  {
    title: 'Empresas',
    url: '/orgs',
    icon: Building2Icon
  }
]

export function AppSidebar() {
  return (
    <Sidebar variant="inset" className="p-4">
      <SidebarRail title="Mostrar/ocultar barra lateral" />
      <SidebarContent>
        <NavMain navMain={navMain} />
      </SidebarContent>
    </Sidebar>
  )
}
