--- import type { MapMarker } from '@/types/Leaflet'; import { normalizeString } from '@/utils/Strings'; import { getLangFromUrl } from '@/i18n/utils'; import { t } from '@/i18n/store'; import CopyText from '@/components/global/CopyText.astro'; interface Props { marker: MapMarker } const { marker: m } = Astro.props as Props; const lang = getLangFromUrl(Astro.url); const byText = t('common.by', lang) const seeMapText = t('maps.go-to-map', lang) ---
{m.cover && m.coverAuthor && m.coverLink && (
{m.title}
{byText} {m.coverAuthor}
)} {m.link ? ( {m.title} ) : ( {m.title} )} {m.description &&

}