import React from 'react' import { Accordion, AccordionDetails, AccordionSummary, Box, Grid, Typography } from '@mui/material' import { ExpandMore as ExpandIcon } from '@mui/icons-material' interface CurriculumEntryProps { title: string dates: string company?: string location?: string children?: React.ReactNode } const CurriculumItem = (props: CurriculumEntryProps) => { return ( } sx={{ flexDirection: 'row-reverse', '& .MuiAccordionSummary-expandIconWrapper': { transform: 'rotate(-90deg)', }, '& .MuiAccordionSummary-expandIconWrapper.Mui-expanded': { transform: 'rotate(0deg)', }, '& .MuiAccordionSummary-content': { marginLeft: 2, }, }}> {props.title} {props.dates} {typeof props.company !== 'undefined' && ( {props.company} )} {typeof props.location !== 'undefined' && ( {props.location} )} {props.dates} {props.title} {typeof props.company !== 'undefined' && ( {props.company} )} {typeof props.location !== 'undefined' && ( {props.location} )} {props.children} ) } export default CurriculumItem