mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-11-17 02:24:10 +01:00
refact: examples
This commit is contained in:
@@ -8,14 +8,16 @@ export interface ToolOptionGroup {
|
||||
}
|
||||
|
||||
export default function ToolOptionGroups({
|
||||
groups
|
||||
groups,
|
||||
vertical
|
||||
}: {
|
||||
groups: ToolOptionGroup[];
|
||||
vertical?: boolean;
|
||||
}) {
|
||||
return (
|
||||
<Grid container spacing={2}>
|
||||
{groups.map((group) => (
|
||||
<Grid item xs={12} md={4} key={group.title}>
|
||||
<Grid item xs={12} md={vertical ? 12 : 4} key={group.title}>
|
||||
<Typography mb={1} fontSize={22}>
|
||||
{group.title}
|
||||
</Typography>
|
||||
|
||||
Reference in New Issue
Block a user