import {joinClassNames} from '../../libs/helper.ts' import {MapLocationProps} from '../../types' type Props = { mapLocationProps?: MapLocationProps onClose?: () => void } export default function InfoPanel(props: Props) { const { mapLocationProps: location, onClose, } = props return (
{location && ( <>

{location.alt_title.length > 0 ? location.alt_title : location.title}

{ onClose && onClose() }}>×
📍 {location.address} {location.telephone && ☎️ {location.telephone} } {location.url && 🔗 링크}
)}
) }