Debian Codegraph @

packages/mui/src/MuiForm/MuiForm.tsx

raw
1 import { ComponentType } from 'react';
2 import { withTheme, FormProps } from '@rjsf/core';
3 import { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
4
5 import { generateTheme } from '../Theme';
6
7 export function generateForm<
8 T = any,
9 S extends StrictRJSFSchema = RJSFSchema,
10 F extends FormContextType = any
11 >(): ComponentType<FormProps<T, S, F>> {
12 return withTheme<T, S, F>(generateTheme<T, S, F>());
13 }
14
15 export default generateForm();