import type { Bar } from '@wutzcalc/shared'; interface Props { bars: Bar[] | null; onPick: (id: number) => void; } export function BarPicker({ bars, onPick }: Props) { return (

Bar auswählen

{bars == null ? (

Lade…

) : ( bars.map(b => ( )) )}
); }