import{j as t,a as e,F as m}from"./dataProvider-3f13e24d.js";import{M as a,C as c,b as p}from"./index-ba82f09b.js";import{F as s,D as d}from"./FunctionField.stories-9259ba30.js";import{u as i}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"./sanitizeFieldRestProps-fb2f7069.js";import"./useRecordContext-3e1d0ecf.js";import"./Labeled-920c48dc.js";import"./clsx.m-a48b126d.js";function n(r){const o=Object.assign({h1:"h1",p:"p",code:"code",a:"a",h2:"h2"},i(),r.components);return e(m,{children:[t(a,{of:s}),`
`,t(o.h1,{id:"functionfield",children:"FunctionField"}),`
`,e(o.p,{children:["If you need a special function to render a field, ",t(o.code,{children:"<FunctionField>"})," is the perfect match. It executes a render function using the current record as parameter. ",t(o.a,{href:"https://marmelab.com/react-admin/FunctionField.html",target:"_blank",rel:"nofollow noopener noreferrer",children:"More information"}),"."]}),`
`,t(c,{}),`
`,t(o.h2,{id:"default",children:"Default"}),`
`,t(p,{of:d})]})}function E(r={}){const{wrapper:o}=Object.assign({},i(),r.components);return o?t(o,Object.assign({},r,{children:t(n,r)})):n(r)}export{E as default};
