import { useState } from "react" // @mui material components import Grid from "@mui/material/Grid" import Card from "@mui/material/Card" import Stepper from "@mui/material/Stepper" import Step from "@mui/material/Step" import StepLabel from "@mui/material/StepLabel" // ThreeD Garden components import MDBox from "~/components/mui/MDBox" import MDTypography from "~/components/mui/MDTypography" import MDButton from "~/components/mui/MDButton" // ThreeD Garden examples components import DashboardLayout from "~/components/elements/LayoutContainers/DashboardLayout" import DashboardNavbar from "~/components/elements/Navbars/DashboardNavbar" import Footer from "~/components/elements/Footer" // Wizard page components import About from "~/components/applications/wizard/components/About" import Account from "~/components/applications/wizard/components/Account" import Address from "~/components/applications/wizard/components/Address" function getSteps(): string[] { return ["About", "Account", "Address"] } function getStepContent(stepIndex: number): JSX.Element { switch (stepIndex) { case 0: return case 1: return case 2: return
default: return null } } function Wizard(): JSX.Element { const [activeStep, setActiveStep] = useState(0) const steps = getSteps() const isLastStep: boolean = activeStep === steps.length - 1 const handleNext = () => setActiveStep(activeStep + 1) const handleBack = () => setActiveStep(activeStep - 1) return ( Build Your Profile This information will let us know more about you. {steps.map((label) => ( {label} ))} {getStepContent(activeStep)} {activeStep === 0 ? ( ) : ( back )} {isLastStep ? "send" : "next"}