"use client" import type React from "react" import { useState } from "react" import Link from "next/link" import { usePathname } from "next/navigation" import { Button } from "@/components/ui/button" import { Input } from "@/components/ui/input" import { Badge } from "@/components/ui/badge" import { Search, Bell, Settings, Users, UserCheck, Calendar, FileText, BarChart3, Home, ChevronLeft, ChevronRight, } from "lucide-react" interface HospitalLayoutProps { children: React.ReactNode } export default function HospitalLayout({ children }: HospitalLayoutProps) { const [sidebarCollapsed, setSidebarCollapsed] = useState(false) const pathname = usePathname() const menuItems = [ { icon: Home, label: "Dashboard", href: "/" }, { icon: Users, label: "Pacientes", href: "/pacientes" }, { icon: UserCheck, label: "Médicos", href: "/medicos" }, { icon: Calendar, label: "Consultas", href: "/consultas" }, { icon: FileText, label: "Relatórios", href: "/relatorios" }, { icon: BarChart3, label: "Estatísticas", href: "/estatisticas" }, { icon: Settings, label: "Configurações", href: "/configuracoes" }, ] return (