import type { ThemeProps } from '@rjsf/core'; import type { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'; import { Form as SuiForm } from 'semantic-ui-react'; import { generateTemplates } from '../Templates'; import { generateWidgets } from '../Widgets'; export function generateTheme< T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any, >(): ThemeProps { return { templates: generateTemplates(), widgets: generateWidgets(), _internalFormWrapper: SuiForm, }; } export default generateTheme();