feat(report): ReportHeader with brand + animal/owner/date
This commit is contained in:
1 parent
6b115a558e
commit
c1483ff265
1 file changed
+20
-2
@@ -1,3 +1,21 @@
|
|||||||
export default function ReportHeader() {
|
import type { Report } from '@/domain/schema/report'
|
||||||
return <div>ReportHeader placeholder</div>
|
import Brand from '@/components/brand/Brand'
|
||||||
|
import { formatDateFr } from '@/lib/dates'
|
||||||
|
|
||||||
|
export interface ReportHeaderProps {
|
||||||
|
report: Report
|
||||||
|
}
|
||||||
|
|
||||||
|
export default function ReportHeader({ report }: ReportHeaderProps) {
|
||||||
|
return (
|
||||||
|
<header className="flex items-center justify-between gap-4 px-6 py-3 border-b border-[var(--color-border)] bg-[var(--color-surface)]">
|
||||||
|
<Brand />
|
||||||
|
<div className="text-sm text-right text-[var(--color-ink-muted)]">
|
||||||
|
<div className="text-[var(--color-ink)] font-medium">
|
||||||
|
{report.animal.name} · {report.owner.name}
|
||||||
|
</div>
|
||||||
|
<div>{formatDateFr(report.date)}</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user