"use client" import { cn } from "@lib/utils" import { Blocks, CalendarClock, Cpu } from "lucide-react" import { useState } from "react" import CompanyBrainConnections from "@/components/settings/company-brain-connections" import CompanyBrainModels from "@/components/settings/company-brain-models" import Proactiveness from "@/components/settings/proactiveness" import { ErrorBoundary } from "@/components/error-boundary" import { dmSans125ClassName } from "@/lib/fonts" type ConfigureSection = "company-brain" | "models" | "automations" const SECTIONS: { id: ConfigureSection label: string description: string icon: typeof Blocks }[] = [ { id: "company-brain", label: "Integrations", description: "Connect the tools your brain works with. Your account covers your own actions and reads; workspace accounts are a shared fallback.", icon: Blocks, }, { id: "models", label: "Models", description: "Pick how fast or thorough your brain should be. Fine-tune each task under Advanced.", icon: Cpu, }, { id: "automations", label: "Automations", description: "Read-only scheduled summaries posted to Slack channels or DMs. You manage the ones you create.", icon: CalendarClock, }, ] export function ConfigureView() { const [activeSection, setActiveSection] = useState("company-brain") const active = SECTIONS.find((section) => section.id === activeSection) if (!active) return null return (

{active.label}

{active.description}

Something went wrong loading this section.

} > {activeSection === "company-brain" ? ( ) : activeSection === "models" ? ( ) : ( )}
) }