import type { FeatureMeta } from '../types'; import InfoPopup from './InfoPopup'; interface FeatureInfoPopupProps { feature: FeatureMeta; onClose: () => void; onNavigateToSource?: (slug: string, featureName: string) => void; } export function FeatureInfoPopup({ feature, onClose, onNavigateToSource }: FeatureInfoPopupProps) { return ( { onNavigateToSource(feature.source!, feature.name); onClose(); }, } : undefined } > {feature.description && (

{feature.description}

)} {feature.detail && (

{feature.detail}

)}
); }