{
  "title": "Notification Dialog 1",
  "description": "A popover-based notification dialog showing recent notifications, unread badge indicator, and quick actions.",
  "name": "layout-notification-1",
  "dependencies": [],
  "registryDependencies": [
    "badge",
    "button",
    "popover"
  ],
  "type": "registry:block",
  "files": [
    {
      "path": "components/blocks/layout/notification/notification-1.tsx",
      "type": "registry:block",
      "content": "import { useState } from \"react\";\n\nimport { BellIcon, XIcon } from \"lucide-react\";\n\nimport { Badge } from \"@/components/ui/badge\";\nimport { Button } from \"@/components/ui/button\";\nimport { Popover, PopoverContent, PopoverTrigger } from \"@/components/ui/popover\";\n\nexport const Notification1 = () => {\n    const [open, setOpen] = useState(false);\n    return (\n        <Popover open={open} onOpenChange={setOpen}>\n            <PopoverTrigger\n                render={\n                    <Button variant=\"ghost\" size=\"icon-sm\" aria-label=\"Notifications\" className=\"relative\">\n                        <BellIcon className=\"size-4.5\" />\n                        <Badge\n                            variant=\"destructive\"\n                            className=\"absolute -inset-e-1 -top-1 flex size-4.5 items-center justify-center rounded-full p-0 text-[0.625rem]\">\n                            3\n                        </Badge>\n                    </Button>\n                }></PopoverTrigger>\n            <PopoverContent className=\"w-80 gap-0 space-y-0 p-0 shadow-none\" align=\"end\">\n                <div className=\"flex items-center justify-between border-b px-4 py-1.5\">\n                    <h4 className=\"text-base font-medium\">Notifications</h4>\n                    <Button variant=\"ghost\" size=\"icon-sm\">\n                        <XIcon />\n                    </Button>\n                </div>\n                <div>\n                    <div className=\"space-y-1 p-2\">\n                        <div className=\"hover:bg-muted cursor-pointer rounded-md px-3 py-1.5 transition-colors\">\n                            <p className=\"text-sm font-medium\">New message received</p>\n                            <p className=\"text-muted-foreground text-xs\">2 minutes ago</p>\n                        </div>\n                        <div className=\"hover:bg-muted cursor-pointer rounded-md px-3 py-1.5 transition-colors\">\n                            <p className=\"text-sm font-medium\">Your report is ready</p>\n                            <p className=\"text-muted-foreground text-xs\">1 hour ago</p>\n                        </div>\n                        <div className=\"hover:bg-muted cursor-pointer rounded-md px-3 py-1.5 transition-colors\">\n                            <p className=\"text-sm font-medium\">System update completed</p>\n                            <p className=\"text-muted-foreground text-xs\">3 hours ago</p>\n                        </div>\n                    </div>\n                </div>\n                <div className=\"border-t p-0.5\">\n                    <Button variant=\"ghost\" className=\"w-full\">\n                        View all notifications\n                    </Button>\n                </div>\n            </PopoverContent>\n        </Popover>\n    );\n};\n"
    }
  ],
  "mcp": {
    "description": "A popover-based notification dialog showing recent notifications, unread badge indicator, and quick actions. Relies on badge, button, popover. Ideal when an AI agent needs to compose section layouts or application views.",
    "tags": [
      "block",
      "layout",
      "notification"
    ]
  }
}