import r from"react";import{plainToClass as e}from"../../../../../../node_modules/class-transformer/esm5/index.js";import{useForm as o}from"../../../../../../node_modules/react-hook-form/dist/index.esm.js";import{FormEntity as m}from"./FormBuilderEntities/Form.js";import{FormComponent as t}from"./FormBuilderStructure/Form.js";export default function(i){var s=i.schema,n=i.onSubmit,u=o(),d=u.register,a=u.handleSubmit,f=u.errors;return r.createElement(t,{onSubmit:n,form:e(m,JSON.parse(s)),errors:f,handleSubmit:a,register:d})}
//# sourceMappingURL=FormBuilder.js.map
