import DynamicRenderer from '../../resources/ui/dynamic/dynamicRenderer'
import DynamicForm from '../../resources/ui/forms/dynamicForm'

const test = () => {
    const props = {
        schema: {
            "type": "object",
            "properties": {
                "hello": {
                    "type": "string"
                }
            },
            "required": [
                "hello"
            ]
        },
        onSubmit: async data => {
            console.log(data);
        },
        onCancel: async err => {
            console.log('canceled',err)
        }
    }


    return (<DynamicRenderer component={'DynamicForm'} props={props}/>);
};
export default test
