{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "radio-station-01",
  "title": "Radio Station",
  "author": "VenusUI",
  "description": "A radio page: tune the dial and the station's schedule appears.",
  "registryDependencies": [
    "https://venusui.com/r/radio-tuner.json"
  ],
  "files": [
    {
      "path": "registry/default/blocks/radio-station-01/components/radio-station-01.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { RadioTuner, type RadioStation } from \"@/registry/default/ui/radio-tuner\"\n\n// The stations and shows are made up.\nconst STATIONS: (RadioStation & { schedule: [string, string][] })[] = [\n  { frequency: 89.7, name: \"Night Owl\", genre: \"Late-night jazz\", schedule: [[\"22:00\", \"Blue Notes with Ada\"], [\"00:00\", \"The Long Set\"], [\"03:00\", \"Before Dawn\"]] },\n  { frequency: 94.2, name: \"Coastline\", genre: \"Indie and folk\", schedule: [[\"18:00\", \"Tidewater\"], [\"20:00\", \"Live from the Pier\"], [\"22:00\", \"Slow Songs\"]] },\n  { frequency: 99.5, name: \"Signal\", genre: \"News and talk\", schedule: [[\"18:00\", \"The Evening Report\"], [\"19:00\", \"Ask an Expert\"], [\"21:00\", \"World Desk\"]] },\n  { frequency: 104.8, name: \"Pulse\", genre: \"Electronic\", schedule: [[\"20:00\", \"Warm-Up\"], [\"22:00\", \"Club Hours\"], [\"02:00\", \"Afterglow\"]] },\n]\n\n/** A community radio page: tune the dial and the station's schedule appears. */\nexport function RadioStation01() {\n  const [station, setStation] = React.useState<(typeof STATIONS)[number] | null>(null)\n\n  return (\n    <section aria-labelledby=\"radio-station-01-title\" className=\"py-24 sm:py-28\">\n      <div className=\"mx-auto max-w-5xl px-4 sm:px-6\">\n        <div className=\"max-w-2xl\">\n          <h2 id=\"radio-station-01-title\" className=\"text-3xl font-semibold tracking-tight sm:text-4xl\">\n            Four stations, one dial\n          </h2>\n          <p className=\"mt-3 leading-7 text-muted-foreground\">Turn the knob to find a station and see what’s on tonight.</p>\n        </div>\n        <div className=\"mt-10 grid grid-cols-[minmax(0,1fr)] items-start gap-8 lg:grid-cols-[minmax(0,1.4fr)_minmax(0,1fr)]\">\n          <RadioTuner\n            stations={STATIONS}\n            defaultFrequency={93.1}\n            onTune={(_, tuned) => setStation(STATIONS.find((s) => s.name === tuned?.name) ?? null)}\n            className=\"max-w-none\"\n          />\n          <div aria-live=\"polite\" className=\"rounded-2xl border bg-card p-6 text-card-foreground\">\n            {station ? (\n              <>\n                <p className=\"font-mono text-xs text-muted-foreground\">{station.frequency.toFixed(1)} FM</p>\n                <h3 className=\"mt-1 text-xl font-semibold\">{station.name}</h3>\n                <p className=\"text-sm text-muted-foreground\">{station.genre}</p>\n                <ol className=\"mt-5 divide-y border-y\">\n                  {station.schedule.map(([time, show]) => (\n                    <li key={time} className=\"flex gap-4 py-2.5 text-sm\">\n                      <span className=\"w-12 font-mono text-muted-foreground tabular-nums\">{time}</span>\n                      <span>{show}</span>\n                    </li>\n                  ))}\n                </ol>\n              </>\n            ) : (\n              <p className=\"text-sm text-muted-foreground\">Between stations. Keep turning.</p>\n            )}\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "version": "0.1.0"
  },
  "categories": [
    "content"
  ],
  "type": "registry:block"
}