{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "account-notifications-01", "type": "registry:block", "description": "Notification preferences management", "registryDependencies": [ "button", "card", "switch" ], "files": [ { "path": "creative-tim-ui/blocks/account-notifications-01/page.tsx", "content": "\"use client\"\n\nimport { Bell, Mail, MessageSquare, Smartphone } from \"lucide-react\"\n\nimport { Card } from \"@/components/ui/card\"\nimport { Label } from \"@/components/ui/label\"\nimport { Switch } from \"@/components/ui/switch\"\n\nconst TABLE_HEAD = [\n { label: \"Activity\", icon: Bell },\n { label: \"Email\", icon: Mail },\n { label: \"Push\", icon: Smartphone },\n { label: \"SMS\", icon: MessageSquare },\n]\n\nconst NOTIFICATIONS = [\n {\n title: \"Mentions\",\n description: \"Notify when another user mentions you in a comment\",\n category: \"Social\",\n email: true,\n push: false,\n sms: true,\n },\n {\n title: \"Comments\",\n description: \"Notify when another user comments on your item\",\n category: \"Social\",\n email: true,\n push: false,\n sms: true,\n },\n {\n title: \"New Follower\",\n description: \"Notify when someone starts following you\",\n category: \"Social\",\n email: false,\n push: true,\n sms: false,\n },\n {\n title: \"Login Activity\",\n description: \"Alert when logging in from a new device or location\",\n category: \"Security\",\n email: true,\n push: true,\n sms: true,\n },\n {\n title: \"Password Changed\",\n description: \"Immediate notification when password is updated\",\n category: \"Security\",\n email: true,\n push: true,\n sms: true,\n },\n {\n title: \"Product Updates\",\n description: \"Get notified about new features and improvements\",\n category: \"Product\",\n email: true,\n push: false,\n sms: false,\n },\n]\n\nexport default function AccountNotifications01() {\n return (\n
\n \n
\n

\n Notification Preferences\n

\n

\n Customize how you receive notifications. These settings apply to all\n activities you're monitoring across the platform.\n

\n
\n\n
\n \n \n \n {TABLE_HEAD.map((head, i) => {\n const Icon = head.icon\n return (\n \n \n \n {head.label}\n \n \n )\n })}\n \n \n \n {NOTIFICATIONS.map((notification, index) => {\n const isLast = index === NOTIFICATIONS.length - 1\n const classes = isLast ? \"py-6\" : \"border-border border-b py-6\"\n\n return (\n \n \n \n \n \n \n )\n })}\n \n
\n
\n
\n

{notification.title}

\n \n {notification.category}\n \n
\n

\n {notification.description}\n

\n
\n
\n
\n \n
\n
\n
\n \n
\n
\n
\n \n
\n
\n
\n\n
\n
\n \n
\n

\n About Notification Delivery\n

\n

\n Email notifications are sent instantly. Push notifications\n require the mobile app. SMS notifications may incur carrier\n charges. You can change these settings at any time.\n

\n
\n
\n
\n
\n
\n )\n}\n", "type": "registry:page", "target": "app/account-notifications/page.tsx" } ], "meta": { "iframeHeight": "900px", "container": "w-full bg-surface min-h-svh flex px-4 py-12 items-center md:py-20 justify-center min-w-0", "mobile": "component" }, "categories": [ "account" ] }