import { FrameworkType } from '../../types'; import { FRAMEWORKS } from '../../types/project'; import { ArrowLeft, Save, Cloud, Download, Globe, Monitor, Smartphone, Server } from 'lucide-react'; interface ToolbarProps { projectName: string; framework: FrameworkType; onBack: () => void; onSave: () => void; saving: boolean; leftContent?: React.ReactNode; rightContent?: React.ReactNode; } export default function Toolbar({ projectName, framework, onBack, onSave, saving, leftContent, rightContent, }: ToolbarProps) { const fw = FRAMEWORKS[framework] || FRAMEWORKS.web; const getIcon = () => { switch (framework) { case 'web': return Globe; case 'electron': return Monitor; case 'maui': return Smartphone; case 'nodejs': return Server; default: return Globe; } }; const Icon = getIcon(); return (