import { ChevronRight } from "lucide-react"; import { PanelShell } from "@/components/panel-shell"; import { PwaControls } from "@/components/pwa-controls"; import { getCaregiverSettingsOverview } from "@/lib/caregiver-panel"; import { requireCaregiverSession } from "@/lib/page-auth"; import { getCaregiverDisplayName } from "@/lib/session"; export const dynamic = "force-dynamic"; export default async function SettingsPage() { const caregiver = await requireCaregiverSession("/settings"); const overview = await getCaregiverSettingsOverview(caregiver.id); const name = getCaregiverDisplayName(caregiver); return (
{name.slice(-1)} {name} 已绑定 {overview.deviceCount} 台设备 · {overview.pushSubscriptionCount} 台设备已开启提醒

通知与设备

安智伴 · AI 数字人陪护 · 家属端 v2

); }