"use client"; import { useState } from "react"; import { useTranslation } from "react-i18next"; import { cn } from "@/lib/utils"; import { SettingsCard, SettingsSection, } from "@/components/settings/settings-parts"; import { SigningPanel } from "@/components/settings/settings-billing"; import { CareTeamPanel } from "@/components/settings/settings-care-team"; import { ProfilePanel } from "@/components/settings/settings-preferences"; const TABS = [ { id: "profile", labelKey: "settings.tabs.profile" }, { id: "records", labelKey: "settings.tabs.records" }, { id: "signing", labelKey: "settings.tabs.signing" }, { id: "careTeam", labelKey: "settings.tabs.careTeam" }, { id: "developers", labelKey: "settings.tabs.developers" }, ] as const; type Tab = (typeof TABS)[number]["id"]; function PlaceholderPanel({ title, description, }: { title: string; description: string; }) { const { t } = useTranslation(); return (

{t("settings.empty")}

); } export function SettingsView() { const { t } = useTranslation(); const [tab, setTab] = useState("profile"); return (

{t(`settings.tabs.${tab}`)}

{tab === "profile" && } {tab === "records" && ( )} {tab === "signing" && } {tab === "careTeam" && } {tab === "developers" && ( )}
); }