import styles from './MapLink.module.css' import { getLanguage } from '@/utils/telegram' interface MapLinkProps { lat: number lon: number title: string } export function MapLink({ lat, lon }: MapLinkProps) { const lang = getLanguage() const googleMapsUrl = `https://www.google.com/maps/search/?api=1&query=${lat},${lon}` const yandexMapsUrl = `https://yandex.ru/maps/?pt=${lon},${lat}&z=17&l=map` return (
{lang === 'ru' ? 'Google Maps' : 'Google Maps'} | {lang === 'ru' ? 'Яндекс Карты' : 'Yandex Maps'}
) }