"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var SideBar_stories_exports = {};
__export(SideBar_stories_exports, {
  Default: () => Default,
  default: () => SideBar_stories_default
});
module.exports = __toCommonJS(SideBar_stories_exports);
var import_react = __toESM(require("react"));
var import_manager_api = require("@storybook/manager-api");
var import_SideBar = __toESM(require("./SideBar"));
var import_addon_actions = require("@storybook/addon-actions");
var import_PortfolioMedium = __toESM(require("@ledgerhq/icons-ui/reactLegacy/PortfolioMedium"));
var import_WalletMedium = __toESM(require("@ledgerhq/icons-ui/reactLegacy/WalletMedium"));
var import_ManagerMedium = __toESM(require("@ledgerhq/icons-ui/reactLegacy/ManagerMedium"));
var import_ArrowTopMedium = __toESM(require("@ledgerhq/icons-ui/reactLegacy/ArrowTopMedium"));
var import_ArrowBottomMedium = __toESM(require("@ledgerhq/icons-ui/reactLegacy/ArrowBottomMedium"));
var import_BuyCryptoAltMedium = __toESM(require("@ledgerhq/icons-ui/reactLegacy/BuyCryptoAltMedium"));
var import_BuyCryptoMedium = __toESM(require("@ledgerhq/icons-ui/reactLegacy/BuyCryptoMedium"));
var import_LendMedium = __toESM(require("@ledgerhq/icons-ui/reactLegacy/LendMedium"));
var import_NanoFoldedMedium = __toESM(require("@ledgerhq/icons-ui/reactLegacy/NanoFoldedMedium"));
var SideBar_stories_default = {
  title: "Navigation/SideBar/SideBar",
  component: import_SideBar.default,
  argTypes: {
    children: {
      type: "text",
      description: "A list a SideBar.Item",
      required: true,
      control: false
    },
    isExpanded: { control: false },
    onToggle: { control: false }
  }
};
const Template = (args) => {
  const [currentArgs, updateArgs] = (0, import_manager_api.useArgs)();
  const handleToggle = () => updateArgs({ isExpanded: !currentArgs.isExpanded });
  const sidebarIconSize = 20;
  return /* @__PURE__ */ import_react.default.createElement(import_SideBar.default, { ...args, onToggle: handleToggle }, /* @__PURE__ */ import_react.default.createElement(import_SideBar.default.Item, { onClick: (0, import_addon_actions.action)("go to portfolio"), label: "portfolio" }, /* @__PURE__ */ import_react.default.createElement(import_PortfolioMedium.default, { size: sidebarIconSize })), /* @__PURE__ */ import_react.default.createElement(import_SideBar.default.Item, { onClick: (0, import_addon_actions.action)("go to accounts"), label: "accounts", isActive: true }, /* @__PURE__ */ import_react.default.createElement(import_WalletMedium.default, { size: sidebarIconSize })), /* @__PURE__ */ import_react.default.createElement(import_SideBar.default.Item, { onClick: (0, import_addon_actions.action)("go to discover"), label: "discover", isDisabled: true }, /* @__PURE__ */ import_react.default.createElement(import_ManagerMedium.default, { size: sidebarIconSize })), /* @__PURE__ */ import_react.default.createElement(import_SideBar.default.Item, { onClick: (0, import_addon_actions.action)("go to send"), label: "send", isDisabled: true }, /* @__PURE__ */ import_react.default.createElement(import_ArrowTopMedium.default, { size: sidebarIconSize })), /* @__PURE__ */ import_react.default.createElement(import_SideBar.default.Item, { onClick: (0, import_addon_actions.action)("go to receive"), label: "receive" }, /* @__PURE__ */ import_react.default.createElement(import_ArrowBottomMedium.default, { size: sidebarIconSize })), /* @__PURE__ */ import_react.default.createElement(import_SideBar.default.Item, { onClick: (0, import_addon_actions.action)("go to buy / Sell"), label: "buy / Sell" }, /* @__PURE__ */ import_react.default.createElement(import_BuyCryptoAltMedium.default, { size: sidebarIconSize })), /* @__PURE__ */ import_react.default.createElement(import_SideBar.default.Item, { onClick: (0, import_addon_actions.action)("go to exchange"), label: "exchange" }, /* @__PURE__ */ import_react.default.createElement(import_BuyCryptoMedium.default, { size: sidebarIconSize })), /* @__PURE__ */ import_react.default.createElement(import_SideBar.default.Item, { onClick: (0, import_addon_actions.action)("go to lend"), label: "lend" }, /* @__PURE__ */ import_react.default.createElement(import_LendMedium.default, { size: sidebarIconSize })), /* @__PURE__ */ import_react.default.createElement(import_SideBar.default.Item, { onClick: (0, import_addon_actions.action)("go to manager"), label: "manager", displayNotificationBadge: true }, /* @__PURE__ */ import_react.default.createElement(import_NanoFoldedMedium.default, { size: sidebarIconSize })));
};
const Default = Template.bind({});
Default.args = {
  onToggle: (0, import_addon_actions.action)("toggle sidebar"),
  isExpanded: true
};
//# sourceMappingURL=SideBar.stories.js.map
