import { Link as RouterLink } from 'react-router-dom'; import { Card, CardActionArea, CardContent, Grid, MenuItem, MenuList, } from '@mui/material'; interface Section { title: string; body?: string; link?: string; to?: string; links?: { text: string; link?: string; to?: string; }[]; } interface Props { sections: Section[]; } export const SectionGridCards = (props: Props) => { const { sections } = props; return ( {sections.map((section, index) => (

{section.title}

{section.body ? (

{section.body}

) : null}
{section.links ? ( {section.links.map((link, i) => ( {link.text} ))} ) : null}
))}
); };