"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.getSuffixWithChevron = void 0;
var _react = _interopRequireDefault(require("react"));
var _wixUiIconsCommon = require("@wix/wix-ui-icons-common");
var _constants = require("../constants");
var _SidebarSubMenuNextSt = require("../SidebarSubMenuNext.st.css.js");
var _jsxFileName = "/home/builduser/work/57e038ea7326c1ec/packages/wix-design-system/dist/cjs/SidebarSubMenuNext/components/common.tsx";
var chevronSuffixJsx = /*#__PURE__*/_react.default.createElement("span", {
  className: _SidebarSubMenuNextSt.classes.chevronRight,
  __self: void 0,
  __source: {
    fileName: _jsxFileName,
    lineNumber: 26,
    columnNumber: 3
  }
}, /*#__PURE__*/_react.default.createElement(_wixUiIconsCommon.ChevronRightSmall, {
  "data-hook": _constants.dataHooks.chevronRight,
  size: "18px",
  __self: void 0,
  __source: {
    fileName: _jsxFileName,
    lineNumber: 27,
    columnNumber: 5
  }
}));
var getSuffixWithChevron = suffix => {
  if (!suffix) {
    return chevronSuffixJsx;
  }
  return Array.isArray(suffix) ? [suffix[0], chevronSuffixJsx] : [suffix, chevronSuffixJsx];
};
exports.getSuffixWithChevron = getSuffixWithChevron;
//# sourceMappingURL=common.js.map