/** ProcessMapPreview — shows the stored map snapshot image. */ import { useProjectStore } from '../../store/projectStore'; interface Props { imgData?: string | null; } export default function ProcessMapPreview({ imgData: propImgData }: Props) { const snapshots = useProjectStore((s) => s.state.map_snapshots_encoded); const currentBase = useProjectStore((s) => s.state.current_base); const imgData = propImgData ?? snapshots?.[currentBase ?? 'OpenStreetMap'] ?? (snapshots ? Object.values(snapshots)[0] : null); if (!imgData) { return (