Files
omni-tools/src/components/options/ToolOptionGroups.tsx

23 lines
536 B
TypeScript
Raw Normal View History

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';
export default function ToolOptionGroups({
groups
}: {
groups: { title: string; component: ReactNode }[];
}) {
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>
);
}