{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "noise-gate-demo",
  "type": "registry:block",
  "title": "Noise Gate: Support Inbox",
  "description": "Before and After Section example, Support Inbox: A help desk's pitch. Overdue tickets, angry follow-ups and a refund that fired three times drift into the seam, and every one that goes through ticks Harbor's resolved count. Point at the noise to stop it and read a card. A take on the before and after (before after). Fits features sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "features",
    "before-and-after",
    "section",
    "comparison",
    "counter",
    "marketing"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/noise-gate#noise-gate-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/noise-gate.json"
  ],
  "files": [
    {
      "path": "components/noise-gate-demo.tsx",
      "type": "registry:component",
      "content": "import { NoiseGate, type NoiseGateItem } from \"@/components/ui/noise-gate\";\n\nfunction Icon({ d }: { d: string }) {\n  return (\n    <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.5} strokeLinecap=\"round\" strokeLinejoin=\"round\">\n      <path d={d} />\n    </svg>\n  );\n}\n\nfunction Avatar({ initials, className }: { initials: string; className: string }) {\n  return (\n    <span className={`grid size-5 place-items-center rounded-full text-[9px] font-semibold text-white ${className}`}>\n      {initials}\n    </span>\n  );\n}\n\nconst clock = \"M8 4.5V8l2.5 1.5M14 8A6 6 0 1 1 2 8a6 6 0 0 1 12 0Z\";\nconst queue = \"M2.5 4h11M2.5 8h11M2.5 12h6\";\nconst trendDown = \"M2 4.5l4.5 4.5 2.5-2.5L14 11.5M14 8v3.5h-3.5\";\nconst reply = \"M6 4 2.5 7.5 6 11M2.5 7.5H10a3.5 3.5 0 0 1 3.5 3.5v1\";\n\nconst tickets: NoiseGateItem[] = [\n  {\n    tag: \"SLA\",\n    tone: \"critical\",\n    icon: <Icon d={clock} />,\n    title: \"Order #48213 hasn't moved in 9 days\",\n    detail: \"First reply overdue by 3h 12m\",\n  },\n  {\n    icon: <Avatar initials=\"MK\" className=\"bg-violet-500\" />,\n    title: \"“Is anyone actually reading these?”\",\n    detail: \"Maya K. · 4th follow-up\",\n  },\n  { tag: \"Queue\", tone: \"warning\", icon: <Icon d={queue} />, title: \"214 chats waiting\", detail: \"Longest wait 38 min\" },\n  {\n    tag: \"Refund\",\n    tone: \"critical\",\n    repeat: 3,\n    title: \"Refund still not processed\",\n    detail: \"Customer wrote 3 times in 10 min\",\n  },\n  { icon: <Icon d={reply} />, title: \"“Sorry for the delay” sent 1,980×\", detail: \"Most used macro this week\" },\n  { tag: \"Escalated\", tone: \"warning\", title: \"Chargeback threatened on #47790\", detail: \"Assigned to nobody\" },\n  {\n    icon: <Avatar initials=\"JD\" className=\"bg-sky-500\" />,\n    title: \"“Fine, I'll just cancel then.”\",\n    detail: \"Jordan D. · live chat\",\n  },\n  {\n    tag: \"CSAT\",\n    tone: \"critical\",\n    icon: <Icon d={trendDown} />,\n    title: \"Satisfaction down to 61%\",\n    detail: \"14 points lower than last month\",\n  },\n  { mono: true, title: \"urgent, URGENT, urgent!!\", detail: \"Three tags, one meaning\" },\n  { tag: \"Handoff\", tone: \"warning\", title: \"Night shift notes missing\", detail: \"92 tickets carried over\" },\n];\n\nexport function NoiseGateDemo() {\n  return (\n    <NoiseGate\n      className=\"max-w-5xl\"\n      items={tickets}\n      noiseTitle={\n        <>\n          Answering tickets with <span className=\"text-zinc-500 dark:text-zinc-400\">“canned replies”</span>\n        </>\n      }\n      calmTitle=\"Answering with Harbor\"\n      count={1284}\n      countPrefix=\"Resolved\"\n      countSuffix=\"tickets today\"\n    />\n  );\n}\n"
    }
  ]
}