import { useEffect, useState } from 'react'; import { useWizardStore } from './store/wizardStore'; import CategorySelection from './pages/Steps/CategorySelection'; import OperationSelection from './pages/Steps/OperationSelection'; import AttributeForm from './pages/Steps/AttributeForm'; import PhotoUploadStep from './pages/Steps/PhotoUploadStep'; import SummaryStep from './pages/Steps/SummaryStep'; import { wizardService } from './services/wizardService'; import type { AttributeDefinition } from './types'; function App() { const { step, selectedCategory } = useWizardStore(); const [definitions, setDefinitions] = useState([]); useEffect(() => { if (selectedCategory) { wizardService.getAttributes(selectedCategory.id).then(setDefinitions); } }, [selectedCategory]); return (
SIG-CM Wizard de Publicación
Paso {step} de 5
{/* Progress Bar */}
{step === 1 && } {step === 2 && } {step === 3 && } {step === 4 && } {step === 5 && }
); } export default App;