{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Ways to get help: email, chat, docs.",
  "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<!--\n  Ways to get help as cards or rows, each with an icon, a title, a sentence and an open link. Axes: layout\n  (grid, list), columns, action (link, none), tone (default, muted).\n-->\n<script lang=\"ts\" module>\n  import type { Snippet } from \"svelte\";\n  import type { Feature } from \"./feature-grid.types\";\n\n  export type SupportChannelsProps = {\n    id: string;\n    title: string;\n    channels: Feature[];\n    empty?: string;\n    open: string;\n    layout?: \"grid\" | \"list\";\n    cols?: \"1-2\" | \"1-3\";\n    action?: \"link\" | \"none\";\n    tone?: \"default\" | \"muted\";\n    landmarkLabel?: string;\n  };\n</script>\n\n<script lang=\"ts\">\n  import Card from \"../compose/Card.svelte\";\n  import CardContent from \"../compose/CardContent.svelte\";\n  import Grid from \"../compose/Grid.svelte\";\n  import LucideIcon from \"../icons/LucideIcon.svelte\";\n  import Stack from \"../compose/Stack.svelte\";\n  import Text from \"../compose/Text.svelte\";\n  import Title from \"../compose/Title.svelte\";\n  import EmptyState from \"../components/empty-state.svelte\";\n  import MenuEntry from \"../components/menu-entry.svelte\";\n  import SectionFrame from \"../components/section-frame.svelte\";\n  import { cn } from \"../utils\";\n\n  let {\n    id,\n    title,\n    channels,\n    empty = \"\",\n    open,\n    layout = \"grid\",\n    cols = \"1-3\",\n    action = \"link\",\n    tone = \"default\",\n    landmarkLabel,\n  }: SupportChannelsProps = $props();\n</script>\n\n<SectionFrame id={id} title={title} tone={tone} landmarkLabel={landmarkLabel}>\n  {#if ((channels?.length ?? 0) === 0)}\n    <EmptyState icon=\"life-buoy\" title={empty} />\n  {:else}\n    <Grid cols={(((layout as string) === \"list\") ? \"1\" : cols)} class=\"gap-4\" data-slot=\"items\">\n      {#each channels as c (c.id)}\n        <Card variant=\"default\" class={cn(\"h-full\", (((layout as string) === \"list\") ? \"flex-row items-center\" : \"\"))}>\n          <CardContent class={cn(\"flex flex-1 gap-4\", (((layout as string) === \"list\") ? \"items-center\" : \"flex-col\"))}>\n            <LucideIcon name={c.icon} size={24} />\n            <Stack gap=\"2\" class=\"flex-1\">\n              <Title as={3} size=\"base\" weight=\"bold\">\n                {c.title}\n              </Title>\n              <Text size=\"sm\" class=\"text-muted-foreground\">\n                {c.text}\n              </Text>\n            </Stack>\n            {#if ((action as string) === \"link\")}\n              <MenuEntry href={c.href} class=\"font-semibold\" testid=\"open\">\n                {open}\n              </MenuEntry>\n            {/if}\n          </CardContent>\n        </Card>\n      {/each}\n    </Grid>\n  {/if}\n</SectionFrame>\n",
      "path": "blocks/support-channels.svelte",
      "target": "blocks/support-channels.svelte"
    }
  ],
  "meta": {
    "category": "support",
    "group": "contact",
    "kind": "block",
    "tags": [
      "svelte",
      "block"
    ]
  },
  "name": "support-channels",
  "registryDependencies": [
    "card",
    "card-content",
    "empty-state",
    "feature-grid",
    "grid",
    "lucide-icon",
    "menu-entry",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "svelte",
  "title": "Support Channels",
  "type": "registry:block"
}
