import { useState } from "react"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { PatientTable } from "@/components/patients/patient-table"; import { BarcodeModal } from "@/components/chart/barcode-modal"; import { LabRxModal } from "@/components/chart/lab-rx-modal"; import { Barcode, FileText } from "lucide-react"; export function LabManagementTab() { const [selectedPatient, setSelectedPatient] = useState(null); const [barcodeOpen, setBarcodeOpen] = useState(false); const [labRxOpen, setLabRxOpen] = useState(false); return (
Lab Actions {selectedPatient ? `Selected patient: ${selectedPatient.firstName} ${selectedPatient.lastName}` : "Select a patient below to get started."}
Patient Records Select a patient by clicking the checkbox. {selectedPatient && ( <> setBarcodeOpen(false)} patient={selectedPatient} /> setLabRxOpen(false)} patient={selectedPatient} /> )}
); }