import { PanelShell } from "@/components/panel-shell"; import { PwaControls } from "@/components/pwa-controls"; import { PushTestPanel } from "@/components/push-test-panel"; 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); return (

已连接设备

{overview.deviceCount}

已开启提醒的设备

{overview.pushSubscriptionCount}

); }