| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- import NavigateNextIcon from '@mui/icons-material/NavigateNext';
- import { Breadcrumbs, Divider, Grid, Typography } from '@mui/material';
- import PropType from 'prop-types';
-
- const StepTitle = ({ title, breadcrumbsArray }) => {
- return (
- <>
- <Grid item xs={12}>
- <Typography
- variant="h3"
- sx={{ pl: 12, mt: 12, height: '100%', color: 'primary.main' }}
- >
- {title}
- </Typography>
- </Grid>
- <Grid item xs={12}>
- <Divider sx={{ backgroundColor: 'primary.main', mx: 12 }} />
- </Grid>
- <Grid item xs={12} sx={{ mt: 4 }}>
- <Breadcrumbs
- aria-label="breadcrumb"
- separator={<NavigateNextIcon fontSize="small" />}
- sx={{ pl: 12, fontSize: 20 }}
- >
- {breadcrumbsArray.map((entry, index) => {
- return (
- <Typography
- fontSize="20px"
- key={index}
- color={index === breadcrumbsArray.length - 1 ? 'red' : 'black'}
- >
- {entry}
- </Typography>
- );
- })}
- <Typography></Typography>
- </Breadcrumbs>
- </Grid>
- </>
- );
- };
-
- StepTitle.propTypes = {
- title: PropType.string,
- breadcrumbsArray: PropType.arrayOf(PropType.string),
- };
-
- export default StepTitle;
|