gendesign/.design-sync/previews/MapCard.tsx

8 lines
641 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { MapCard } from 'tradein-mvp-frontend';
import { FIXTURE_ESTIMATE } from './_fixtures';
/** Карта аналитики — target + 3 аналога с гео-точками (Leaflet + OSM-тайлы).
* NB: компонент тянет Leaflet с unpkg CDN + тайлы с tile.openstreetmap.org. В
* офлайн-capture карта не грузится (loadLeaflet → error → mapError, либо серый
* холст --surface-2). Card-обёртка (шапка/легенда/футер) рендерится в любом случае. */
export const Default = () => <MapCard estimate={FIXTURE_ESTIMATE} />;