import * as React from 'react'; import Box from '@mui/material/Box'; import Button from '@mui/material/Button'; import Card from '@mui/material/Card'; import CardContent from '@mui/material/CardContent'; import CssBaseline from '@mui/material/CssBaseline'; import Grid from '@mui/material/Grid'; import Stack from '@mui/material/Stack'; import Step from '@mui/material/Step'; import StepLabel from '@mui/material/StepLabel'; import Stepper from '@mui/material/Stepper'; import Typography from '@mui/material/Typography'; import ChevronLeftRoundedIcon from '@mui/icons-material/ChevronLeftRounded'; import ChevronRightRoundedIcon from '@mui/icons-material/ChevronRightRounded'; import AddressForm from './components/AddressForm'; import Info from './components/Info'; import InfoMobile from './components/InfoMobile'; import PaymentForm from './components/PaymentForm'; import Review from './components/Review'; import SitemarkIcon from './components/SitemarkIcon'; import AppTheme from '../shared-theme/AppTheme'; import ColorModeIconDropdown from '../shared-theme/ColorModeIconDropdown'; const steps = ['Shipping address', 'Payment details', 'Review your order']; function getStepContent(step) { switch (step) { case 0: return ; case 1: return ; case 2: return ; default: throw new Error('Unknown step'); } } export default function Checkout(props) { const [activeStep, setActiveStep] = React.useState(0); const handleNext = () => { setActiveStep(activeStep + 1); }; const handleBack = () => { setActiveStep(activeStep - 1); }; return ( = 2 ? '$144.97' : '$134.98'} /> {steps.map((label) => ( {label} ))}
Selected products {activeStep >= 2 ? '$144.97' : '$134.98'}
= 2 ? '$144.97' : '$134.98'} />
{steps.map((label) => ( {label} ))} {activeStep === steps.length ? ( 📦 Thank you for your order! Your order number is  #140396. We have emailed your order confirmation and will update you once its shipped. ) : ( {getStepContent(activeStep)} {activeStep !== 0 && ( )} {activeStep !== 0 && ( )} )}
); }