@workday/canvas-kit-react
Version:
The parent module that contains all Workday Canvas Kit React components
13 lines (12 loc) • 408 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.useRTL = void 0;
const common_1 = require("@workday/canvas-kit-react/common");
const useRTL = (partialTheme) => {
const theme = (0, common_1.useTheme)(partialTheme);
const shouldUseRTL = theme.canvas.direction === common_1.ContentDirection.RTL;
return {
shouldUseRTL,
};
};
exports.useRTL = useRTL;