import { useState } from 'react' import { useKV } from '@github/spark/hooks' import { Tabs, TabsContent } from '@/components/ui/tabs' import { Button } from '@/components/ui/button' import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card' import { AppHeader, PageHeader } from '@/components/organisms' import { FeatureToggles, Project } from '@/types/project' import { toast } from 'sonner' const DEFAULT_FEATURE_TOGGLES: FeatureToggles = { codeEditor: true, models: true, components: true, componentTrees: true, workflows: true, lambdas: true, styling: true, flaskApi: true, playwright: true, storybook: true, unitTests: true, errorRepair: true, documentation: true, sassStyles: true, faviconDesigner: true, ideaCloud: true, schemaEditor: true, dataBinding: true, } function App() { const [featureToggles] = useKV('feature-toggles', DEFAULT_FEATURE_TOGGLES) const [activeTab, setActiveTab] = useState('dashboard') const [lastSaved] = useState(Date.now()) const safeFeatureToggles = featureToggles || DEFAULT_FEATURE_TOGGLES const getCurrentProject = (): Project => { return { name: 'Test Project', files: [], models: [], components: [], componentTrees: [], workflows: [], lambdas: [], theme: { variants: [], activeVariantId: 'light', fontFamily: 'Inter', fontSize: { small: 12, medium: 14, large: 20 }, spacing: 8, borderRadius: 4, }, } } const handleProjectLoad = (project: Project) => { toast.success('Project loaded') } return (
{}} onShowShortcuts={() => {}} onGenerateAI={() => {}} onExport={() => {}} onShowErrors={() => {}} />
Dashboard Welcome to CodeForge

The application is loading successfully!

Code Editor

Code editor will load here

) } export default App