import{j as t,a as i,F as a}from"./dataProvider-3f13e24d.js";import{M as s,C as c,b as e}from"./index-ba82f09b.js";import{E as d,D as n,C as h}from"./Edit.stories-1ff7c9a6.js";import{u as p}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"./jsx-runtime_commonjs-proxy-8cae6ccb.js";import"./Tooltip-459141a0.js";import"./useIsFocusVisible-e5ed743c.js";import"./useRefresh-9110db68.js";import"./Button-a22a3ea5.js";import"./useRecordContext-3e1d0ecf.js";import"./TopToolbar-b554b4e8.js";import"./TextInput-fb26ec3e.js";import"./isPlainObject-457bc8dd.js";import"./Clear-da86992f.js";import"./ComponentPropType-842e1716.js";import"./useGetRecordRepresentation-c11302be.js";import"./useMutation-5bff67ad.js";import"./OptionalRecordContextProvider-42fa908b.js";import"./SimpleForm-481d7dea.js";function m(r){const o=Object.assign({h1:"h1",p:"p",code:"code",a:"a",h2:"h2"},p(),r.components);return i(a,{children:[t(s,{of:d}),`
`,t(o.h1,{id:"edit",children:"Edit"}),`
`,i(o.p,{children:["The ",t(o.code,{children:"<Edit>"})," component is the main component for edition pages. It fetches a record based on the URL, 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 ",t(o.code,{children:"<SimpleForm>"}),"). This form component uses its children (",t(o.code,{children:"<Input>"})," components) to render each form input. ",t(o.a,{href:"https://marmelab.com/react-admin/Edit.html",target:"_blank",rel:"nofollow noopener noreferrer",children:"More information"}),"."]}),`
`,t(c,{}),`
`,t(o.h2,{id:"default",children:"Default"}),`
`,t(e,{of:n}),`
`,t(o.h2,{id:"customactions",children:"CustomActions"}),`
`,t(e,{of:h}),`
`,t(o.h2,{id:"default-1",children:"Default"}),`
`,t(e,{of:n})]})}function Y(r={}){const{wrapper:o}=Object.assign({},p(),r.components);return o?t(o,Object.assign({},r,{children:t(m,r)})):m(r)}export{Y as default};
