import r from "../../jtl-dropdown/types/DropdownItem.js";
function l(o) {
  return {
    type: r.Default,
    label: o.label,
    onClick: o.route ? () => {
      window.location.href = o == null ? void 0 : o.route;
    } : void 0
  };
}
export {
  l as default
};
//# sourceMappingURL=createMenuItem.js.map
