2024-06-25 02:07:57 +01:00
|
|
|
import Typography from '@mui/material/Typography';
|
|
|
|
|
import React, { ReactNode } from 'react';
|
|
|
|
|
import { Box, Stack } from '@mui/material';
|
|
|
|
|
|
2024-06-25 07:15:42 +01:00
|
|
|
interface ToolOptionGroup {
|
|
|
|
|
title: string;
|
|
|
|
|
component: ReactNode;
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-25 02:07:57 +01:00
|
|
|
export default function ToolOptionGroups({
|
|
|
|
|
groups
|
|
|
|
|
}: {
|
2024-06-25 07:15:42 +01:00
|
|
|
groups: ToolOptionGroup[];
|
2024-06-25 02:07:57 +01:00
|
|
|
}) {
|
|
|
|
|
return (
|
|
|
|
|
<Stack direction={'row'} spacing={2}>
|
|
|
|
|
{groups.map((group) => (
|
|
|
|
|
<Box key={group.title}>
|
2024-06-25 03:11:48 +01:00
|
|
|
<Typography mb={1} fontSize={22}>
|
|
|
|
|
{group.title}
|
|
|
|
|
</Typography>
|
2024-06-25 02:07:57 +01:00
|
|
|
{group.component}
|
|
|
|
|
</Box>
|
|
|
|
|
))}
|
|
|
|
|
</Stack>
|
|
|
|
|
);
|
|
|
|
|
}
|