'use client' // React Imports import { useState } from 'react' // MUI Imports import Step from '@mui/material/Step' import Card from '@mui/material/Card' import Button from '@mui/material/Button' import Stepper from '@mui/material/Stepper' import StepLabel from '@mui/material/StepLabel' import CardHeader from '@mui/material/CardHeader' import Typography from '@mui/material/Typography' import CardContent from '@mui/material/CardContent' import StepContent from '@mui/material/StepContent' // Third-party Imports import { toast } from 'react-toastify' import classNames from 'classnames' // Component Imports import StepperWrapper from '@core/styles/stepper' import StepperCustomDot from '@components/stepper-dot' // Vars const steps = [ { title: 'Account Details', subtitle: 'Enter your Account Details', description: 'Chocolate cookie lollipop toffee candy canes marzipan liquorice chocolate. Cake gummi bears dessert lollipop apple pie candy. Candy pie sesame snaps lollipop biscuit chocolate cake fruitcake apple pie. Toffee carrot cake biscuit oat cake jujubes fruitcake biscuit gummi bears. Cake carrot cake jujubes sugar plum pastry gummi bears gingerbread icing. Lemon drops pie cake. Halvah marzipan bonbon gingerbread cupcake pastry gummi bears cake jujubes.' }, { title: 'Personal Info', subtitle: 'Setup Information', description: 'Lemon drops ice cream danish macaroon bear claw cookie. Liquorice ice cream chocolate bar pastry chocolate bar candy. Caramels candy canes marshmallow soufflé biscuit tart fruitcake tiramisu. Gummi bears icing gingerbread pastry bonbon gummies candy canes pastry. Candy canes chocolate chupa chups cake cheesecake apple pie halvah dessert. Chupa chups wafer tootsie roll fruitcake lemon drops cookie donut topping powder.' }, { title: 'Social Links', subtitle: 'Add Social Links', description: 'Jelly lollipop halvah bear claw jujubes macaroon candy canes. Soufflé halvah lollipop liquorice macaroon powder. Cookie topping pastry oat cake caramels bonbon. Sesame snaps sweet cookie macaroon soufflé pudding. Chocolate donut macaroon muffin donut biscuit marzipan halvah. Bear claw biscuit chocolate cake chupa chups oat cake bear claw cupcake tiramisu apple pie. Carrot cake bear claw marshmallow sweet pudding toffee.' } ] const StepperVerticalWithNumbers = () => { // States const [activeStep, setActiveStep] = useState(0) const handleNext = () => { setActiveStep(prevActiveStep => prevActiveStep + 1) if (activeStep === steps.length - 1) { toast.success('Completed All Steps!!') } } const handleBack = () => { setActiveStep(prevActiveStep => prevActiveStep - 1) } const handleReset = () => { setActiveStep(0) } return ( {steps.map((step, index) => (
{`0${index + 1}`}
{step.title} {step.subtitle}
{step.description}
))}
{activeStep === steps.length && (
All steps are completed!
)}
) } export default StepperVerticalWithNumbers