diff --git a/src/components/observation/ObservationList.tsx b/src/components/observation/ObservationList.tsx index a28a1453..49ce3c4b 100644 --- a/src/components/observation/ObservationList.tsx +++ b/src/components/observation/ObservationList.tsx @@ -1,3 +1,55 @@ -export default function ObservationList() { - return
ObservationList placeholder
+import type { Observation } from '@/domain/schema/observation' +import ObservationCard from './ObservationCard' +import Button from '@/components/ui/Button' + +export interface ObservationListProps { + observations: Observation[] + activeIndex: number + onSelect: (i: number) => void + onAdd: () => void + onDelete: (i: number) => void + onMoveUp: (i: number) => void + onMoveDown: (i: number) => void +} + +export default function ObservationList({ + observations, + activeIndex, + onSelect, + onAdd, + onDelete, + onMoveUp, + onMoveDown, +}: ObservationListProps) { + return ( +
+
+

Observations

+ +
+ {observations.length === 0 ? ( +

+ Aucune observation. Cliquez sur "+ Nouvelle observation" puis sur les zones du schéma. +

+ ) : ( + + )} +
+ ) }