Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.141/page_editor/app/components/app-hooks/useLanguageDirection",["module","exports","require","liferay!frontend-js-react-web$react","../../contexts/StoreContext","../../selectors/selectLanguageId"],(function(e,t,n){window;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function useLanguageDirection(){const e=(0,r.useSelector)(a.default);(0,o.useEffect)((()=>{const t=Liferay.Language.direction[e],n=document.getElementById("wrapper");n&&(n.dir=t,n.lang=e)}),[e])};var o=n("liferay!frontend-js-react-web$react"),r=n("../../contexts/StoreContext"),a=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(n("../../selectors/selectLanguageId"))}));
//# sourceMappingURL=useLanguageDirection.js.map