From c1483ff265fd34a31907db0ecccfab6dfe573912 Mon Sep 17 00:00:00 2001 From: Bastien Chanot Date: Mon, 18 May 2026 21:30:59 +0200 Subject: [PATCH] feat(report): ReportHeader with brand + animal/owner/date --- src/components/report/ReportHeader.tsx | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/components/report/ReportHeader.tsx b/src/components/report/ReportHeader.tsx index 583317d8..55a6ca8b 100644 --- a/src/components/report/ReportHeader.tsx +++ b/src/components/report/ReportHeader.tsx @@ -1,3 +1,21 @@ -export default function ReportHeader() { - return
ReportHeader placeholder
+import type { Report } from '@/domain/schema/report' +import Brand from '@/components/brand/Brand' +import { formatDateFr } from '@/lib/dates' + +export interface ReportHeaderProps { + report: Report +} + +export default function ReportHeader({ report }: ReportHeaderProps) { + return ( +
+ +
+
+ {report.animal.name} ยท {report.owner.name} +
+
{formatDateFr(report.date)}
+
+
+ ) }