import {joinClassNames} from '../../libs/helper.ts' import {LocationSet, MapLocationProps} from '../../types' type Props = { locations?: MapLocationProps[] className?: string label?: string name?: string onChange?: (ids: number[]) => void selected?: LocationSet } function formatMapLocation(mapLocation: MapLocationProps) { let output = mapLocation.title if (mapLocation.address) { output += ` (${mapLocation.address})` } return output } export default function LocationsList(props: Props) { const { locations, className, label, name, onChange, selected, } = props return (