import{j as t}from"./assertThisInitialized-ClXgY4BW.js";import{useMDXComponents as e}from"./index-3-_tf5dF.js";import{ae as n,ag as s,af as i}from"./index-DR6eUxYz.js";import{E as a,D as m,C as c}from"./Edit.stories-W2gc2qDJ.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"./EditView-DCTtH4Lg.js";import"./defaultI18nProvider-C_r1y4tu.js";import"./ShowButton-DFgxFuea.js";import"./createSvgIcon-BeVLBbd8.js";import"./createSvgIcon-C1LdFc73.js";import"./index-qEiLzbkV.js";import"./Button-C3j8Wgdd.js";import"./useResourceContext-BI9mATY-.js";import"./useRecordContext-CmNI-aHo.js";import"./TopToolbar-BqW7kXvQ.js";import"./Toolbar-C8uTbHq-.js";import"./useAuthenticated-CxLvTTH7.js";import"./_isIterateeCall-D0xvKagp.js";import"./useAuthState-Chcbfem2.js";import"./useResourceDefinitionContext-mEDLreK0.js";import"./colorManipulator-DXmmM2jC.js";import"./useQuery-DJhJ3Hj4.js";import"./useLogout-DAYYFX4P.js";import"./EditBase-zpPedF3-.js";import"./useGetRecordRepresentation-DwGaoA_n.js";import"./useRefresh-BVYjI9Ho.js";import"./useGetOne-Ddk2GsYy.js";import"./useDataProvider-BTi1EEZL.js";import"./useUpdate-B6txAJ-A.js";import"./useMutation-DBpLFNEy.js";import"./undoableEventEmitter-DTIdLI-s.js";import"./useRedirect-BE8GZC2N.js";import"./DateInput-Cata5nxE.js";import"./DeleteButton-BNKEwqMZ.js";import"./Confirm-BXDL5GEC.js";import"./Typography-E7d16C50.js";import"./Modal-CloRq8hE.js";import"./useRemoveFromStore-DvPdj666.js";import"./pick-BQz50zYv.js";import"./SimpleForm-DxY-i_Qk.js";import"./Clear-2k3OxyE6.js";import"./TextField-z9WrHgJg.js";import"./useFormControl-D0zEVldg.js";import"./FormGroupsProvider-B1X-6k0S.js";import"./getFieldLabelTranslationArgs-DwcCC9dO.js";import"./CircularProgress-CoZCnRya.js";import"./warning-3oRADCZr.js";import"./Stack-BmeOikgJ.js";import"./CardContent-C5u1opi3.js";import"./merge-2TaxnYbe.js";import"./isArrayLikeObject-WBq23Ido.js";import"./OptionalRecordContextProvider-ChL7EZ8k.js";import"./ResourceContextProvider-_t2ysSg2.js";import"./Card-Cv9uZOGS.js";import"./Title-Db_cbkJo.js";import"./PreferencesEditorContext-oPOmBo-a.js";import"./checkMinimumRequiredProps-BCJG0Ked.js";import"./Box-UI_bZnlM.js";import"./List-D8wQapDP.js";import"./ListView-BNoLT4yC.js";import"./ListNoResults-BHi6V5m8.js";import"./useGetList-Dit6Yzrj.js";import"./debounce-0x2xWYwC.js";import"./hooks-kyAPvxe4.js";import"./CreateButton-BoKnyQsN.js";import"./MenuItem-CP3dxiK8.js";import"./listItemTextClasses-C7xWMLDP.js";import"./ListItemText-Cc_vo_cp.js";import"./Datagrid-BK2vyqjN.js";import"./SwitchBase-GsdOADyY.js";import"./ExpandMore-Bu7ZqolT.js";import"./ListBase-CEqRUlEo.js";import"./AdminContext-jMMnnv4u.js";import"./TextField-n0Myx-gm.js";function p(r){const o={a:"a",code:"code",h1:"h1",h2:"h2",p:"p",...e(),...r.components};return t.jsxs(t.Fragment,{children:[t.jsx(n,{of:a}),`
`,t.jsx(o.h1,{id:"edit",children:"Edit"}),`
`,t.jsxs(o.p,{children:["The ",t.jsx(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.jsx(o.code,{children:"<SimpleForm>"}),"). This form component uses its children (",t.jsx(o.code,{children:"<Input>"})," components) to render each form input. ",t.jsx(o.a,{href:"https://marmelab.com/react-admin/Edit.html",rel:"nofollow",children:"More information"}),"."]}),`
`,t.jsx(s,{}),`
`,t.jsx(o.h2,{id:"default",children:"Default"}),`
`,t.jsx(i,{of:m}),`
`,t.jsx(o.h2,{id:"customactions",children:"CustomActions"}),`
`,t.jsx(i,{of:c}),`
`,t.jsx(o.h2,{id:"default-1",children:"Default"}),`
`,t.jsx(i,{of:m})]})}function Jt(r={}){const{wrapper:o}={...e(),...r.components};return o?t.jsx(o,{...r,children:t.jsx(p,{...r})}):p(r)}export{Jt as default};
