"use client" import { useTranslations } from "next-intl" import { Bell } from "lucide-react" import { type ReactElement } from "react" import { Label } from "@/shared/components/ui/label" import { Switch } from "@/shared/components/ui/switch" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/shared/components/ui/card" export interface NotificationConfigValues { notifyNewUser: boolean notifyScheduleChange: boolean notifyAnnouncement: boolean } interface NotificationConfigCardProps { values: NotificationConfigValues onChange: (key: keyof NotificationConfigValues, value: boolean) => void } /** * 管理员系统设置 - 通知配置卡片 */ export function NotificationConfigCard({ values, onChange }: NotificationConfigCardProps): ReactElement { const t = useTranslations("settings.admin.notificationConfig") return (
{t("title")} {t("description")}

{t("notifyNewUserDesc")}

onChange("notifyNewUser", v)} />

{t("notifyScheduleChangeDesc")}

onChange("notifyScheduleChange", v)} />

{t("notifyAnnouncementDesc")}

onChange("notifyAnnouncement", v)} />
) }