"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
require("@emotion/react");
require("react");
const jsxRuntime = require("@emotion/react/jsx-runtime");
const style = require("./style.js");
require("../../../styles.js");
require("../../CheckBox/style.js");
require("../../RadioButton/RadioButtonWrap.js");
require("../../Select/Select/SelectWrap.js");
require("../../Input/style.js");
require("../../UploadCell/UploadCellWrap.js");
const index = require("../../Loading/Loading/index.js");
require("../../Loading/FolderLoading/style.js");
require("../NormalButton/style.js");
require("../SmallButton/style.js");
require("../../Avatar/style.js");
require("react-dom");
require("../../Modal/NormalModal/ModalWrap.js");
require("../../Modal/FullScreenModal/style.js");
require("../../Modal/CardModal/ModalWrap.js");
require("../../BottomTabBar/style.js");
require("../../Message/index.js");
require("../../Divider/styles.js");
require("../../Header/styles.js");
require("../../Media/index.js");
require("../../Textarea/styled.js");
require("../../Switch/styled.js");
const motion = require("../../../node_modules/.pnpm/framer-motion@6.5.1_react-dom@17.0.2_react@17.0.2/node_modules/framer-motion/dist/es/render/dom/motion.js");
const Button = ({
  label,
  children,
  onClick,
  className,
  style: style$1,
  minWidth = 0,
  type = "default",
  loading,
  cssStyle
}) => {
  return /* @__PURE__ */ jsxRuntime.jsx(
    style.ButtonContainerWrap,
    {
      minWidth,
      type,
      css: cssStyle,
      className,
      children: /* @__PURE__ */ jsxRuntime.jsx(
        motion.motion.div,
        {
          whileTap: { scale: 0.92 },
          onClick,
          style: style$1,
          className: "button",
          children: loading ? /* @__PURE__ */ jsxRuntime.jsx(index.Loading, { size: "small" }) : label || children
        }
      )
    }
  );
};
exports.Button = Button;
//# sourceMappingURL=index.js.map
