UNPKG

@coreui/react-pro

Version:

UI Components Library for React.js

19 lines (16 loc) 439 B
import isRTL from './isRTL.js'; var getRTLPlacement = function (placement, element) { switch (placement) { case 'right': { return isRTL(element) ? 'left' : 'right'; } case 'left': { return isRTL(element) ? 'right' : 'left'; } default: { return placement; } } }; export { getRTLPlacement as default }; //# sourceMappingURL=getRTLPlacement.js.map