front-hub/src/pages/Faq/AccordionWrapper.tsx

25 lines
570 B
TypeScript
Raw Normal View History

2022-12-21 11:26:07 +00:00
import { Box } from "@mui/material";
2022-11-21 21:56:51 +00:00
import CustomAccordion from "@components/CustomAccordion";
2023-06-16 19:04:59 +00:00
import { cardShadow } from "@root/utils/themes/shadow";
2022-11-21 21:56:51 +00:00
interface Props {
content: [string, string][];
2022-11-21 21:56:51 +00:00
}
export default function AccordionWrapper({ content }: Props) {
return (
<Box
sx={{
overflow: "hidden",
borderRadius: "12px",
2023-06-16 19:04:59 +00:00
boxShadow: cardShadow,
}}
>
{content.map((accordionItem, index) => (
<CustomAccordion key={index} header={accordionItem[0]} text={accordionItem[1]} />
))}
</Box>
);
2022-12-29 21:05:47 +00:00
}