import React from "react"; import Card from "@mui/material/Card"; import { Typography } from "@mui/material"; import Box from '@mui/material/Box'; import Stepper from '@mui/material/Stepper'; import Step from '@mui/material/Step'; import StepLabel from '@mui/material/StepLabel'; const steps = ['Select campaign settings', 'Create an ad group', 'Create an ad']; export default function ErrorStep() { const isStepFailed = (step) => { return step === 1; }; return ( <> Error Step {steps.map((label, index) => { const labelProps = {}; if (isStepFailed(index)) { labelProps.optional = ( Alert message ); labelProps.error = true; } return ( {label} ); })} ); }