import{r as t}from"./index-BP8_t0zE.js";import{g as u}from"./assertThisInitialized-ClXgY4BW.js";import{u as e}from"./useAuthenticated-CxLvTTH7.js";var s=function(l){var i=e({resource:l}).recordRepresentation;return t.useCallback(function(n){return n?typeof i=="function"?i(n):typeof i=="string"?u(n,i):t.isValidElement(i)?i:(n==null?void 0:n.name)!=null&&(n==null?void 0:n.name)!==""?n.name:(n==null?void 0:n.title)!=null&&(n==null?void 0:n.title)!==""?n.title:(n==null?void 0:n.label)!=null&&(n==null?void 0:n.label)!==""?n.label:(n==null?void 0:n.reference)!=null&&(n==null?void 0:n.reference)!==""?n.reference:"#".concat(n.id):""},[i])};export{s as u};
