Liferay.Loader.define("@liferay/object-web@1.0.132/js/components/Layout/LayoutScreen/ObjectLayoutRelationship",["module","exports","require","@frontend-taglib-clay$clayui/label","@liferay/object-js-components-web","liferay!frontend-js-react-web$react","../objectLayoutContext"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectLayoutRelationship=function ObjectLayoutRelationship({objectRelationshipId:t}){const[{objectRelationships:a}]=(0,i.useLayoutContext)(),r=a.find((({id:e})=>e===t));return o.default.createElement(o.default.Fragment,null,o.default.createElement(n.Panel,{key:"field_".concat(t)},o.default.createElement(n.PanelSimpleBody,{title:null==r?void 0:r.label[e]},o.default.createElement("small",{className:"text-secondary"},Liferay.Language.get("relationship")," |"," "),o.default.createElement(l.default,{displayType:r.reverse?"info":"success"},r.reverse?Liferay.Language.get("child"):Liferay.Language.get("parent")))))};var l=_interopRequireDefault(a("@frontend-taglib-clay$clayui/label")),n=a("@liferay/object-js-components-web"),o=_interopRequireDefault(a("liferay!frontend-js-react-web$react")),i=a("../objectLayoutContext");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const e=Liferay.ThemeDisplay.getDefaultLanguageId()}}));
//# sourceMappingURL=ObjectLayoutRelationship.js.map