mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-29 16:16:02 +00:00
21 lines
505 B
TypeScript
21 lines
505 B
TypeScript
|
|
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}>
|
||
|
|
<Typography fontSize={22}>{group.title}</Typography>
|
||
|
|
{group.component}
|
||
|
|
</Box>
|
||
|
|
))}
|
||
|
|
</Stack>
|
||
|
|
);
|
||
|
|
}
|