import"./dataProvider-3f13e24d.js";import{u as f,a as m}from"./TopToolbar-b554b4e8.js";import{u as p}from"./Button-a22a3ea5.js";import{r as i}from"./index-76fb7be0.js";import{g as c}from"./_baseAssignValue-4b27bc5d.js";var y=function(r,t,e){var n=t.id,a=t.meta,o=p();return f([r,"getOne",{id:String(n),meta:a}],function(){return o.getOne(r,{id:n,meta:a}).then(function(u){var s=u.data;return s})},e)},O=function(r){var t=m({resource:r}).recordRepresentation;return i.useCallback(function(e){return e?typeof t=="function"?t(e):typeof t=="string"?c(e,t):i.isValidElement(t)?t:"#".concat(e.id):""},[t])};export{y as a,O as u};
