Liferay.Loader.define("@liferay/object-web@1.0.153/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:e}){const[{creationLanguageId:t,objectRelationships:a}]=(0,r.useLayoutContext)(),i=a.find((({id:t})=>t===e));return o.default.createElement(o.default.Fragment,null,o.default.createElement(l.Panel,{key:"field_".concat(e)},o.default.createElement(l.PanelSimpleBody,{title:(0,l.getLocalizableLabel)(t,i.label,i.name)},o.default.createElement("small",{className:"text-secondary"},Liferay.Language.get("relationship")," |"," "),o.default.createElement(n.default,{displayType:i.reverse?"info":"success"},i.reverse?Liferay.Language.get("child"):Liferay.Language.get("parent")))))};var n=_interopRequireDefault(a("@frontend-taglib-clay$clayui/label")),l=a("@liferay/object-js-components-web"),o=_interopRequireDefault(a("liferay!frontend-js-react-web$react")),r=a("../objectLayoutContext");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=ObjectLayoutRelationship.js.map