import type { TideStation } from '../services/tides.js' type TideStationPickerModalProps = { title: string hint: string cancelLabel: string stations: TideStation[] onSelect: (station: TideStation) => void onCancel: () => void } export function TideStationPickerModal({ title, hint, cancelLabel, stations, onSelect, onCancel }: TideStationPickerModalProps) { return (
{ if (e.target === e.currentTarget) onCancel() }} >
e.stopPropagation()}>

{title}

{hint}

) }