"use client"; import { useState } from "react"; import { cn } from "@/lib/utils"; import { SettingsCard, SettingsSection, } from "@/components/settings/settings-parts"; import { BillingPanel } from "@/components/settings/settings-billing"; import { PreferencesPanel } from "@/components/settings/settings-preferences"; const TABS = [ "Preferences", "Billing", "Members", "Webhooks", "Custom Fields", ] as const; type Tab = (typeof TABS)[number]; function PlaceholderPanel({ title, description, }: { title: string; description: string; }) { return ( Nothing here yet. ); } export function SettingsView() { const [tab, setTab] = useState("Preferences"); return ( {tab} {TABS.map((item) => ( setTab(item)} type="button" > {item} ))} {tab === "Preferences" && } {tab === "Billing" && } {tab === "Members" && ( )} {tab === "Webhooks" && ( )} {tab === "Custom Fields" && ( )} ); }
Nothing here yet.