import { useEffect, useState } from "react"; import { ArchitectureSection } from "./components/ArchitectureSection"; import { ContractsSection } from "./components/ContractsSection"; import { DocsPortal } from "./components/DocsPortal"; import { FaqSection } from "./components/FaqSection"; import { FooterCta } from "./components/FooterCta"; import { Hero } from "./components/Hero"; import { OverviewGrid } from "./components/OverviewGrid"; import { RouteMatrix } from "./components/RouteMatrix"; import { Section } from "./components/Section"; import { StudioSection } from "./components/StudioSection"; import { TopNav } from "./components/TopNav"; import { WorkflowShowcase } from "./components/WorkflowShowcase"; import { getConfig, getContent, getContracts } from "./content/api"; import type { AppConfig, ContentResponse, ContractMap } from "./content/types"; function App() { const [content, setContent] = useState(null); const [config, setConfig] = useState(null); const [contracts, setContracts] = useState(null); const [error, setError] = useState(null); useEffect(() => { async function bootstrap() { try { const [nextConfig, nextContent, nextContracts] = await Promise.all([ getConfig(), getContent(), getContracts(), ]); setConfig(nextConfig); setContent(nextContent); setContracts(nextContracts); } catch (caughtError) { setError(caughtError instanceof Error ? caughtError.message : "Failed to load app"); } } void bootstrap(); }, []); if (error) { return (

Unable to load Aether Voice Studio

{error}

); } if (!content || !config || !contracts) { return (

Loading Aether Voice Studio

Preparing the docs surface, route matrix, and demo contracts.

); } return (
Port {config.singlePort}} >
); } export default App;