mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
* feat: add rhea * fix: blocks * feat: build chat example * fix * fix: sidebar * fix * feat: update home * fix * fix * fix * feat: optimizine fonts * feat * fix * fix * fix * fix * fix * fix * fix: font in preview * fix
77 lines
1.8 KiB
TypeScript
77 lines
1.8 KiB
TypeScript
import { Button } from "@/styles/base-rhea/ui/button"
|
|
import {
|
|
Card,
|
|
CardContent,
|
|
CardDescription,
|
|
CardFooter,
|
|
CardHeader,
|
|
CardTitle,
|
|
} from "@/styles/base-rhea/ui/card"
|
|
import { Checkbox } from "@/styles/base-rhea/ui/checkbox"
|
|
import {
|
|
Field,
|
|
FieldContent,
|
|
FieldDescription,
|
|
FieldGroup,
|
|
FieldLabel,
|
|
} from "@/styles/base-rhea/ui/field"
|
|
|
|
const NOTIFICATIONS = [
|
|
{
|
|
id: "transactions",
|
|
label: "Transaction alerts",
|
|
description: "Deposits, withdrawals, and transfers.",
|
|
defaultChecked: true,
|
|
},
|
|
{
|
|
id: "security",
|
|
label: "Security alerts",
|
|
description: "Login attempts and account changes.",
|
|
defaultChecked: true,
|
|
},
|
|
{
|
|
id: "goals",
|
|
label: "Goal milestones",
|
|
description: "Updates at 25%, 50%, 75%, and 100%.",
|
|
defaultChecked: false,
|
|
},
|
|
{
|
|
id: "market",
|
|
label: "Market updates",
|
|
description: "Daily portfolio summary and price alerts.",
|
|
defaultChecked: false,
|
|
},
|
|
]
|
|
|
|
export function NotificationSettings() {
|
|
return (
|
|
<Card>
|
|
<CardHeader>
|
|
<CardTitle>Notifications</CardTitle>
|
|
<CardDescription>
|
|
Choose which email and push alerts you want to receive.
|
|
</CardDescription>
|
|
</CardHeader>
|
|
<CardContent>
|
|
<FieldGroup>
|
|
{NOTIFICATIONS.map((n) => (
|
|
<Field key={n.id} orientation="horizontal">
|
|
<Checkbox
|
|
id={`notify-${n.id}`}
|
|
defaultChecked={n.defaultChecked}
|
|
/>
|
|
<FieldContent>
|
|
<FieldLabel htmlFor={`notify-${n.id}`}>{n.label}</FieldLabel>
|
|
<FieldDescription>{n.description}</FieldDescription>
|
|
</FieldContent>
|
|
</Field>
|
|
))}
|
|
</FieldGroup>
|
|
</CardContent>
|
|
<CardFooter>
|
|
<Button className="w-full">Save Preferences</Button>
|
|
</CardFooter>
|
|
</Card>
|
|
)
|
|
}
|