import{j as o}from"./assertThisInitialized-ClXgY4BW.js";import{useMDXComponents as e}from"./index-3-_tf5dF.js";import{ae as p,af as i}from"./index-DR6eUxYz.js";import{C as n,D as s,a,A as c}from"./Create.stories-D-BVMAMW.js";import"./index-BP8_t0zE.js";import"./iframe-Bt0xsNC5.js";import"../sb-preview/runtime.js";import"./index-BCKAMao3.js";import"./index-D-8MO0q_.js";import"./hasIn-BUTlUeuZ.js";import"./identity-B2iMGpmP.js";import"./cloneDeep-BX3t29rH.js";import"./_copyObject-Dr_k0OJK.js";import"./_baseUniq-BtunyI9N.js";import"./index-D1T6JPBw.js";import"./index-DrFu-skq.js";import"./dataProvider-BSMCbdJg.js";import"./Confirm-BXDL5GEC.js";import"./defaultI18nProvider-C_r1y4tu.js";import"./createSvgIcon-BeVLBbd8.js";import"./createSvgIcon-C1LdFc73.js";import"./Typography-E7d16C50.js";import"./Modal-CloRq8hE.js";import"./Button-C3j8Wgdd.js";import"./colorManipulator-DXmmM2jC.js";import"./TopToolbar-BqW7kXvQ.js";import"./Toolbar-C8uTbHq-.js";import"./Box-UI_bZnlM.js";import"./Stack-BmeOikgJ.js";import"./Create-DhH8wTBS.js";import"./Title-Db_cbkJo.js";import"./PreferencesEditorContext-oPOmBo-a.js";import"./TextField-z9WrHgJg.js";import"./useFormControl-D0zEVldg.js";import"./useRecordContext-CmNI-aHo.js";import"./warning-3oRADCZr.js";import"./Card-Cv9uZOGS.js";import"./checkMinimumRequiredProps-BCJG0Ked.js";import"./pick-BQz50zYv.js";import"./_isIterateeCall-D0xvKagp.js";import"./useCreate-CQ5Hl1r5.js";import"./useMutation-DBpLFNEy.js";import"./useLogout-DAYYFX4P.js";import"./useDataProvider-BTi1EEZL.js";import"./useAuthenticated-CxLvTTH7.js";import"./useAuthState-Chcbfem2.js";import"./useResourceDefinitionContext-mEDLreK0.js";import"./useQuery-DJhJ3Hj4.js";import"./useResourceContext-BI9mATY-.js";import"./DateInput-Cata5nxE.js";import"./DeleteButton-BNKEwqMZ.js";import"./useRemoveFromStore-DvPdj666.js";import"./useRedirect-BE8GZC2N.js";import"./undoableEventEmitter-DTIdLI-s.js";import"./SimpleForm-DxY-i_Qk.js";import"./Clear-2k3OxyE6.js";import"./FormGroupsProvider-B1X-6k0S.js";import"./getFieldLabelTranslationArgs-DwcCC9dO.js";import"./CircularProgress-CoZCnRya.js";import"./CardContent-C5u1opi3.js";import"./merge-2TaxnYbe.js";import"./isArrayLikeObject-WBq23Ido.js";import"./OptionalRecordContextProvider-ChL7EZ8k.js";import"./ResourceContextProvider-_t2ysSg2.js";import"./AdminContext-jMMnnv4u.js";import"./index-qEiLzbkV.js";function m(r){const t={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",...e(),...r.components};return o.jsxs(o.Fragment,{children:[o.jsx(p,{of:n}),`
`,o.jsx(t.h1,{id:"create",children:"Create"}),`
`,o.jsxs(t.p,{children:["The ",o.jsx(t.code,{children:"<Create>"})," component is the main component for creation pages. It prepares a form submit handler, and renders the page title and actions. It is not responsible for rendering the actual form - that’s the job of its child component (usually a form component, like ",o.jsx(t.code,{children:"<SimpleForm>"}),"). This form component uses its children (",o.jsx(t.code,{children:"<Input>"})," components) to render each form input. ",o.jsx(t.a,{href:"https://marmelab.com/react-admin/Create.html",rel:"nofollow",children:"More information"}),"."]}),`
`,o.jsx(t.h2,{id:"default",children:"Default"}),`
`,o.jsx(i,{of:s}),`
`,o.jsx(t.h2,{id:"customactions",children:"CustomActions"}),`
`,o.jsx(i,{of:a}),`
`,o.jsx(t.h2,{id:"aside",children:"Aside"}),`
`,o.jsx(i,{of:c})]})}function yo(r={}){const{wrapper:t}={...e(),...r.components};return t?o.jsx(t,{...r,children:o.jsx(m,{...r})}):m(r)}export{yo as default};
