25 lines
570 B
TypeScript
25 lines
570 B
TypeScript
import { Box } from "@mui/material";
|
|
|
|
import CustomAccordion from "@components/CustomAccordion";
|
|
import { cardShadow } from "@root/utils/themes/shadow";
|
|
|
|
interface Props {
|
|
content: [string, string][];
|
|
}
|
|
|
|
export default function AccordionWrapper({ content }: Props) {
|
|
return (
|
|
<Box
|
|
sx={{
|
|
overflow: "hidden",
|
|
borderRadius: "12px",
|
|
boxShadow: cardShadow,
|
|
}}
|
|
>
|
|
{content.map((accordionItem, index) => (
|
|
<CustomAccordion key={index} header={accordionItem[0]} text={accordionItem[1]} />
|
|
))}
|
|
</Box>
|
|
);
|
|
}
|