1
0
Fork 0
fahrPool/web/components/standorte/StandorteTabelle.tsx

27 lines
905 B
TypeScript

import type { Ort } from "@/lib/auftraege/queries";
import { StandortZeile } from "./StandortZeile";
import { NeuerStandort } from "./NeuerStandort";
export function StandorteTabelle({ orte }: { orte: Ort[] }) {
return (
<div role="table" aria-label="Standorte" className="w-full">
<div
role="row"
className="hidden border-b border-aluminium-grey px-4 py-2 text-sm font-semibold text-asphalt-grey md:grid md:grid-cols-[1fr_1fr_auto]"
>
<div role="columnheader">Adresse</div>
<div role="columnheader">Ansprechpartner</div>
<div role="columnheader">
<span className="sr-only">Aktionen</span>
</div>
</div>
<div role="rowgroup" className="flex flex-col gap-3 md:gap-0">
{orte.map((ort) => (
<StandortZeile key={ort.id} ort={ort} />
))}
<NeuerStandort />
</div>
</div>
);
}