'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
var useMenuContext = require('./useMenuContext.cjs');

function useDirectionStyle(level) {
  const { mode, rtl, inlineIndent } = useMenuContext.useInjectMenu();
  return vue.computed(
    () => mode.value !== "inline" ? null : rtl.value ? { paddingRight: `${level.value * inlineIndent.value}px` } : { paddingLeft: `${level.value * inlineIndent.value}px` }
  );
}

exports.default = useDirectionStyle;
//# sourceMappingURL=useDirectionStyle.cjs.map
