import { useState } from 'react';
import { Container } from "reactstrap";
import Header from "../components/Header";
import ActivationStep from "../components/steps/activation/ActivationStep";
import AddressStep from "../components/steps/address/AddressStep";
import SoilStep from "../components/steps/soilvariant/SoilStep";
import HabitatStep from "../components/steps/habitat/HabitatStep";
import ZoneStep from "../components/steps/zone/ZoneStep";
import SummaryStep from "../components/steps/summary/SummaryStep";
import CompleteStep from "../components/steps/complete/CompleteStep";
import { StepperWizard } from "../components/providers/StepperProvider";
import { useFilter } from "../components/providers/FilterProvider";
import { Box, Typography, Modal, Button } from '@mui/material';
const ApplyPage = () => {
const [error, setError] = useState("");
const { submit } = useFilter();
const onSubmit = async () => {
try {
await submit();
} catch (e) {
setError("There was a problem sending data to the API. Please try again.");
throw e;
}
}
return (
<>
0} onClose={() => setError("")}>
Error
{error}
>);
};
export default ApplyPage;