import { ArrowRight, Building2, Globe2, MapPin, Orbit, Rocket, Satellite } from 'lucide-react'; import Link from 'next/link'; import { fmtInt } from '@/lib/format'; import type { SearchPayload, SearchResult } from '@/lib/types'; type EntityType = SearchResult['entity_type']; const GROUPS: { type: EntityType; label: string; Icon: typeof Satellite }[] = [ { type: 'satellite', label: 'Satellites', Icon: Satellite }, { type: 'constellation', label: 'Constellations', Icon: Orbit }, { type: 'operator', label: 'Operators', Icon: Building2 }, { type: 'country', label: 'Countries', Icon: Globe2 }, { type: 'launch', label: 'Launches', Icon: Rocket }, { type: 'launch_site', label: 'Launch sites', Icon: MapPin }, ]; export function Shortcuts({ items }: { items: SearchPayload['shortcuts'] }) { if (!items.length) return null; return (
Filters matching your query