{
  "$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 */\nimport { type ReactNode } from \"react\";\nimport { Card, CardContent, Grid, Stack, Text, Title } from \"../compose\";\nimport { LucideIcon } from \"../icons/LucideIcon\";\nimport { EmptyState } from \"../components/empty-state\";\nimport { MenuEntry } from \"../components/menu-entry\";\nimport { SectionFrame } from \"../components/section-frame\";\nimport { cn } from \"../utils\";\nimport type { Feature } from \"./feature-grid.types\";\n\nexport 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\nexport function SupportChannels({\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) {\n  return (\n    <SectionFrame id={id} title={title} tone={tone} landmarkLabel={landmarkLabel}>\n      {((channels?.length ?? 0) === 0) ? (\n        <EmptyState icon=\"life-buoy\" title={empty} />\n      ) : (\n        <Grid cols={(((layout as string) === \"list\") ? \"1\" : cols)} className=\"gap-4\" data-slot=\"items\">\n          {(channels ?? []).map((c) => (\n            <Card key={c.id}\n              variant=\"default\"\n              className={cn(\"h-full\", (((layout as string) === \"list\") ? \"flex-row items-center\" : \"\"))}\n            >\n              <CardContent className={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\" className=\"flex-1\">\n                  <Title as={3} size=\"base\" weight=\"bold\">\n                    {c.title}\n                  </Title>\n                  <Text size=\"sm\" className=\"text-muted-foreground\">\n                    {c.text}\n                  </Text>\n                </Stack>\n                {((action as string) === \"link\") ? (\n                  <MenuEntry href={c.href} className=\"font-semibold\" testid=\"open\">\n                    {open}\n                  </MenuEntry>\n                ) : null}\n              </CardContent>\n            </Card>\n          ))}\n        </Grid>\n      )}\n    </SectionFrame>\n  );\n}\n",
      "path": "blocks/support-channels.tsx",
      "target": "blocks/support-channels.tsx"
    }
  ],
  "meta": {
    "category": "support",
    "group": "contact",
    "kind": "block",
    "tags": [
      "react",
      "block"
    ]
  },
  "name": "support-channels",
  "registryDependencies": [
    "compose",
    "empty-state",
    "feature-grid",
    "lucide-icon",
    "menu-entry",
    "section-frame",
    "utils"
  ],
  "runtime": "react",
  "title": "Support Channels",
  "type": "registry:block"
}
