{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Media Topics component",
  "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. -->\n<script lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n  import type { MediaExtras, MediaListLabels } from \"../blocks/media-list.types\";\n\n  export type MediaTopicsProps = {\n    extras: MediaExtras;\n    labels: MediaListLabels;\n  };\n</script>\n\n<script lang=\"ts\">\n  import Inline from \"../compose/Inline.svelte\";\n  import LucideIcon from \"../icons/LucideIcon.svelte\";\n  import Stack from \"../compose/Stack.svelte\";\n  import Text from \"../compose/Text.svelte\";\n  import MenuEntry from \"../components/menu-entry.svelte\";\n  import { tpl } from \"../utils\";\n\n  let { extras, labels }: MediaTopicsProps = $props();\n</script>\n\n<Stack gap=\"4\" align=\"stretch\" data-slot=\"media-topics\">\n  <Text size=\"sm\" weight=\"semibold\">\n    {labels.list}\n  </Text>\n  {#each extras.topics as c, i (c.id)}\n    {#if (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    {/if}\n  {/each}\n</Stack>\n",
      "path": "components/media-topics.svelte",
      "target": "components/media-topics.svelte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "svelte",
      "component"
    ]
  },
  "name": "media-topics",
  "registryDependencies": [
    "inline",
    "lucide-icon",
    "media-list",
    "menu-entry",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Media Topics",
  "type": "registry:component"
}
