"use client"; /** * `` — the temporary body of every `/settings/[section]` * route until the matching extraction PR lands. * * The shell + routing surface ship in PR A2-shell so reviewers can validate * the URL structure in isolation. The follow-up PRs (A2-account, A2-about, * A2-ai, A2-integrations, A2-notifications, A2-rest) replace this placeholder * with the real content for each slug, copying from * `src/app/settings/page.legacy.tsx`. */ import { Bell, Download, Info, KeyRound, Layers, LayoutDashboard, Link2, Settings2, SlidersHorizontal, Sparkles, User, type LucideIcon, } from "lucide-react"; import { EmptyState } from "@/components/ui/empty-state"; import { useTranslations } from "@/lib/i18n/context"; import type { SettingsSectionSlug } from "./section-slugs"; const SLUG_ICON: Record = { account: User, integrations: Link2, notifications: Bell, dashboard: LayoutDashboard, thresholds: SlidersHorizontal, sources: Layers, ai: Sparkles, api: KeyRound, export: Download, advanced: Settings2, about: Info, }; export interface SectionPlaceholderProps { slug: SettingsSectionSlug; } export function SectionPlaceholder({ slug }: SectionPlaceholderProps) { const { t } = useTranslations(); const Icon = SLUG_ICON[slug]; const sectionTitle = t(`settings.sections.${slug}.title`); const sectionDescription = t(`settings.sections.${slug}.description`); return (

{sectionTitle}

{sectionDescription}

} title={sectionTitle} description={t("settings.sections.placeholder.coming_soon")} />
); }