diff --git a/src/components/Customizer.tsx b/src/components/Customizer.tsx index 6aeae36..8145edf 100644 --- a/src/components/Customizer.tsx +++ b/src/components/Customizer.tsx @@ -50,51 +50,56 @@ export default function Customizer({ parameters, onChange }: Props) { return (
- {Object.entries(groups).map(([groupName, groupParams], idx) => ( - - }> - {groupName} - - - {groupParams.map((parameter) => { - if (parameter.type === 'number' || parameter.type === 'string') { - return ( - - ); - } else if (parameter.type === 'boolean') { - return ( - - - } + {Object.entries(groups) + .filter((x) => x[0].toLowerCase() !== 'hidden') + .map(([groupName, groupParams], idx) => ( + + }> + {groupName} + + + {groupParams.map((parameter) => { + if ( + parameter.type === 'number' || + parameter.type === 'string' + ) { + return ( + - + ); + } else if (parameter.type === 'boolean') { + return ( + + + } + label={parameter.description || parameter.name} + /> + + ); + } + return ( +
+ {parameter.name} {parameter.type} +
); - } - return ( -
- {parameter.name} {parameter.type} -
- ); - })} -
-
- ))} + })} + + + ))}
); }