{
  "$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 { For, type JSX } from \"solid-js\";\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      <For each={extras.topics ?? []}>{(c, iOf) => { const i = iOf(); return (\n        <>\n          {(i < 5) ? (\n            <MenuEntry\n              href={c.href}\n              class=\"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 class=\"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\" class=\"min-w-0 flex-1\">\n                <Text size=\"sm\" weight=\"semibold\">\n                  {c.name}\n                </Text>\n                <Text size=\"xs\" class=\"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        </>\n      ); }}</For>\n    </Stack>\n  );\n}\n",
      "path": "components/media-topics.tsx",
      "target": "components/media-topics.tsx"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "solid",
      "component"
    ]
  },
  "name": "media-topics",
  "registryDependencies": [
    "compose",
    "lucide-icon",
    "media-list",
    "menu-entry",
    "utils"
  ],
  "runtime": "solid",
  "title": "Media Topics",
  "type": "registry:component"
}
