import { Pencil } from 'lucide-react'; import { Button } from '../../../components/ui/button.tsx'; interface SelectedPatientSummaryProps { name: string; secondary: string; /** Seeded from the visit the clinician has open, and not changed since. */ fromOpenVisit: boolean; canChange: boolean; onChange: () => void; } /** The chosen patient, saying why when the open visit chose it, with the way to book for someone else. */ const SelectedPatientSummary = ({ name, secondary, fromOpenVisit, canChange, onChange }: SelectedPatientSummaryProps) => ( <>
Patient {fromOpenVisit && <> from the open visit}
{name}
{secondary}
{canChange && ( )}
{fromOpenVisit && canChange && (

Booking for someone else?{' '}

)} ); export default SelectedPatientSummary;