diff --git a/src/components/report/PractitionerForm.tsx b/src/components/report/PractitionerForm.tsx index ffadcaca..3a6a5735 100644 --- a/src/components/report/PractitionerForm.tsx +++ b/src/components/report/PractitionerForm.tsx @@ -1,3 +1,33 @@ -export default function PractitionerForm() { - return
PractitionerForm placeholder
+import type { Practitioner } from '@/domain/schema/practitioner' +import Label from '@/components/ui/Label' +import Input from '@/components/ui/Input' + +export interface PractitionerFormProps { + value: Practitioner + onChange: (next: Practitioner) => void +} + +export default function PractitionerForm({ value, onChange }: PractitionerFormProps) { + const set = (patch: Partial) => onChange({ ...value, ...patch }) + return ( +
+ Praticien +
+ + set({ name: e.target.value })} /> +
+
+ + set({ cabinet: e.target.value || undefined })} /> +
+
+ + set({ contact: e.target.value || undefined })} /> +
+
+ + set({ siret: e.target.value || undefined })} /> +
+
+ ) }