Files
omni-tools/src/components/examples/ExampleOptions.tsx
Ibrahima G. Coulibaly 90d3c0801e feat: minify json
2025-03-08 06:43:11 +00:00

20 lines
427 B
TypeScript

import ToolOptionGroups from '@components/options/ToolOptionGroups';
import { GetGroupsType } from '@components/options/ToolOptions';
import React from 'react';
export default function ExampleOptions<T>({
options,
getGroups
}: {
options: T;
getGroups: GetGroupsType<T> | null;
}) {
return (
<ToolOptionGroups
// @ts-ignore
groups={getGroups?.({ values: options }) ?? []}
vertical
/>
);
}