import{j as o,a as i,F as a}from"./dataProvider-3f13e24d.js";import{M as p,C as s,b as e}from"./index-ba82f09b.js";import{C as c,D as d,a as h,A as l}from"./Create.stories-307a9b72.js";import{u as m}from"./index-a1cf9e47.js";import"./index-76fb7be0.js";import"./_commonjsHelpers-de833af9.js";import"./_baseSet-5837f3b2.js";import"./_baseAssignValue-4b27bc5d.js";import"./index-d3ea75b5.js";import"./iframe-973434a3.js";import"../sb-preview/runtime.js";import"./index-11d98b33.js";import"./assertThisInitialized-081f9914.js";import"./cloneDeep-35baf799.js";import"./_baseIteratee-d87c84d1.js";import"./_baseFor-d6cf4e2e.js";import"./identity-66bf3aad.js";import"./_initCloneObject-017b06d4.js";import"./keysIn-ce4aae3b.js";import"./index-356e4a49.js";import"./index-cd5774e0.js";import"./index-8d47fad6.js";import"./clsx.m-a48b126d.js";import"./TopToolbar-b554b4e8.js";import"./Button-a22a3ea5.js";import"./Tooltip-459141a0.js";import"./useIsFocusVisible-e5ed743c.js";import"./useRecordContext-3e1d0ecf.js";import"./jsx-runtime_commonjs-proxy-8cae6ccb.js";import"./SimpleForm-481d7dea.js";import"./TextInput-fb26ec3e.js";import"./isPlainObject-457bc8dd.js";import"./Clear-da86992f.js";import"./OptionalRecordContextProvider-42fa908b.js";import"./useMutation-5bff67ad.js";import"./index-fa9b5ce0.js";function n(r){const t=Object.assign({h1:"h1",p:"p",code:"code",a:"a",h2:"h2"},m(),r.components);return i(a,{children:[o(p,{of:c}),`
`,o(t.h1,{id:"create",children:"Create"}),`
`,i(t.p,{children:["The ",o(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(t.code,{children:"<SimpleForm>"}),"). This form component uses its children (",o(t.code,{children:"<Input>"})," components) to render each form input. ",o(t.a,{href:"https://marmelab.com/react-admin/Create.html",target:"_blank",rel:"nofollow noopener noreferrer",children:"More information"}),"."]}),`
`,o(s,{}),`
`,o(t.h2,{id:"default",children:"Default"}),`
`,o(e,{of:d}),`
`,o(t.h2,{id:"customactions",children:"CustomActions"}),`
`,o(e,{of:h}),`
`,o(t.h2,{id:"aside",children:"Aside"}),`
`,o(e,{of:l})]})}function W(r={}){const{wrapper:t}=Object.assign({},m(),r.components);return t?o(t,Object.assign({},r,{children:o(n,r)})):n(r)}export{W as default};
