{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "sector-atlas",
  "title": "Sector atlas",
  "description": "Follow three observatories across a globe, select a site, and switch to a flat chart.",
  "dependencies": [
    "lucide-react@1.73.0"
  ],
  "registryDependencies": [
    "https://www.cyberspec.dev/r/recipe-layout.json",
    "https://www.cyberspec.dev/r/map.json",
    "https://www.cyberspec.dev/r/segmented-control.json"
  ],
  "files": [
    {
      "path": "registry/cyber/recipes/sector-atlas.tsx",
      "content": "\"use client\"\n\nimport { useState } from \"react\"\nimport { Globe, Map as MapIcon } from \"lucide-react\"\nimport { Map, type MapMarker, type MapProjection } from \"@/registry/cyber/ui/map\"\nimport { SegmentedControl } from \"@/registry/cyber/ui/segmented-control\"\nimport \"./recipe-layout.css\"\n\nconst observatories: MapMarker[] = [\n  { id: \"mauna-kea\", code: \"MK\", label: \"Mauna Kea\", coordinate: [-155.47, 19.82] },\n  { id: \"paranal\", code: \"PN\", label: \"Cerro Paranal\", coordinate: [-70.40, -24.63] },\n  { id: \"la-palma\", code: \"LP\", label: \"La Palma\", coordinate: [-17.89, 28.76] },\n]\nconst relays = [\n  { id: \"pacific\", from: \"mauna-kea\", to: \"paranal\" },\n  { id: \"atlantic\", from: \"paranal\", to: \"la-palma\" },\n]\n\nexport default function SectorAtlas() {\n  const [projection, setProjection] = useState<MapProjection>(\"globe\")\n  const [selected, setSelected] = useState<string | null>(\"paranal\")\n  return (\n    <div className=\"sink-stack\">\n      <Map label=\"Observatory network\" markers={observatories} routes={relays} projection={projection}\n        value={selected} onValueChange={setSelected} />\n      <SegmentedControl<MapProjection> label=\"Projection\" value={projection}\n        options={[{ label: \"Globe\", value: \"globe\", icon: <Globe /> }, { label: \"Flat map\", value: \"mercator\", icon: <MapIcon /> }]}\n        onValueChange={next => next && setProjection(next)} />\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "@components/recipes/sector-atlas.tsx"
    }
  ],
  "categories": [
    "recipe",
    "instruments"
  ],
  "type": "registry:component"
}
