import { MapPin, MapPinOff, RotateCw } from 'lucide-react'; import { useTranslation } from '../../i18n'; import type { StayPin } from './useStayPin'; interface StayPinStatusProps { pin: StayPin; /** A stay already linked to a place of the trip shows on the map through that place. */ hidden?: boolean; /** Asks the map again with what the form now holds. */ onRetry: () => void; } /** * Whether an imported stay will show on the map, under its address in the * review: being looked up, found (and where, so a wrong match is plain), or not * found, with a way to search again before it is saved without a pin. Shared by * the desktop booking dialog and the phone's booking sheet. */ export default function StayPinStatus({ pin, hidden = false, onRetry }: StayPinStatusProps) { const { t } = useTranslation(); if (hidden || pin.status === 'idle') return null; if (pin.status === 'searching') { return (
{t('reservations.import.pinMissingTitle')}
{t('reservations.import.pinMissingBody')}