{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The topics of MediaList as card rows: a glyph tile, the name, the count and an arrow.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n/** The topics of MediaList as card rows: a glyph tile, the name, the count and an arrow. */\nimport { Fragment, type ReactNode } from \"react\";\nimport { Inline, Stack, Text } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { MenuEntry } from \"../components/menu-entry\";\nimport { tpl } from \"../utils\";\nimport type { MediaExtras, MediaListLabels } from \"../blocks/media-list.types\";\n\nexport type MediaTopicsProps = {\n  extras: MediaExtras;\n  labels: MediaListLabels;\n};\n\nexport function MediaTopics({ extras, labels }: MediaTopicsProps) {\n  return (\n    <Stack gap=\"4\" align=\"stretch\" data-slot=\"media-topics\">\n      <Text size=\"sm\" weight=\"semibold\">\n        {labels.list}\n      </Text>\n      {(extras.topics ?? []).map((c, i) => (\n        <Fragment key={c.id}>\n          {(i < 5) ? (\n            <MenuEntry\n              href={c.href}\n              className=\"rounded bg-card inset-ring inset-ring-border flex w-full items-center gap-4 p-4\"\n              variant=\"block\"\n              testid=\"media-topic\"\n              block={true}\n            >\n              <Inline className={\"flex size-8 shrink-0 items-center justify-center rounded bg-primary text-primary-foreground\"}>\n                <LucideIcon name={c.icon} size={16} />\n              </Inline>\n              <Stack gap=\"0\" className=\"min-w-0 flex-1\">\n                <Text size=\"sm\" weight=\"semibold\">\n                  {c.name}\n                </Text>\n                <Text size=\"xs\" className=\"text-muted-foreground\">\n                  {tpl(labels.count, c.count)}\n                </Text>\n              </Stack>\n              <LucideIcon name=\"arrow-right\" size={16} />\n            </MenuEntry>\n          ) : null}\n        </Fragment>\n      ))}\n    </Stack>\n  );\n}\n",
      "path": "components/media-topics.tsx",
      "target": "components/media-topics.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "react",
      "component"
    ]
  },
  "name": "media-topics",
  "registryDependencies": [
    "compose",
    "lucide-icon",
    "media-list",
    "menu-entry",
    "utils"
  ],
  "runtime": "react",
  "title": "Media Topics",
  "type": "registry:component"
}
