import{j as p}from"./index-6605a014.js";import{r as i}from"./react-e45097e1.js";import{h as f,K as m,N as u}from"./Author-826c76c5.js";import{F as j}from"./antd-6dbc138d.js";function a({form:r,schema:t,initialValues:e,...n}){var s;const{formItems:o}=f();return i.useEffect(()=>{r==null||r.resetFields()},[e]),i.useEffect(()=>{o&&m(...o)},[o]),p.jsx(j,{colon:!1,layout:"vertical",...n,...t==null?void 0:t.props,form:r,initialValues:e,children:(s=t==null?void 0:t.items)==null?void 0:s.map((x,F)=>p.jsx(u,{schema:x},F))})}export{a as F};
