mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-09 06:55:07 +00:00
52 lines
1.7 KiB
TypeScript
52 lines
1.7 KiB
TypeScript
import { AtSign, Bell, BellOff } from "lucide-react"
|
|
|
|
import {
|
|
Card,
|
|
CardContent,
|
|
CardDescription,
|
|
CardHeader,
|
|
CardTitle,
|
|
} from "@/components/ui/card"
|
|
|
|
export function DemoNotifications() {
|
|
return (
|
|
<Card>
|
|
<CardHeader>
|
|
<CardTitle>Notifications</CardTitle>
|
|
<CardDescription>
|
|
Choose what you want to be notified about.
|
|
</CardDescription>
|
|
</CardHeader>
|
|
<CardContent className="grid gap-1 p-1.5">
|
|
<div className="flex items-center space-x-4 rounded-md p-2 hover:bg-accent hover:text-accent-foreground">
|
|
<Bell className="h-5 w-5" />
|
|
<div className="space-y-1">
|
|
<p className="text-sm font-medium leading-none">Everything</p>
|
|
<p className="text-sm text-muted-foreground">
|
|
Email digest, mentions & all activity.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div className="flex items-center space-x-4 rounded-md bg-accent p-2 text-accent-foreground">
|
|
<AtSign className="h-5 w-5" />
|
|
<div className="space-y-1">
|
|
<p className="text-sm font-medium leading-none">Available</p>
|
|
<p className="text-sm text-muted-foreground">
|
|
Only mentions and comments.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div className="flex items-center space-x-4 rounded-md p-2 hover:bg-accent hover:text-accent-foreground">
|
|
<BellOff className="h-5 w-5" />
|
|
<div className="space-y-1">
|
|
<p className="text-sm font-medium leading-none">Ignoring</p>
|
|
<p className="text-sm text-muted-foreground">
|
|
Turn off all notifications.
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</CardContent>
|
|
</Card>
|
|
)
|
|
}
|