import "@emotion/react";
import "react";
import { jsxs, jsx } from "@emotion/react/jsx-runtime";
import { ButtonWrap } from "./style.js";
import loadingSvg from "../../../assets/icon/loading.svg.js";
const NormalButton = function({
  children,
  loading,
  onClick,
  cssStyle,
  className
}) {
  return /* @__PURE__ */ jsxs(
    ButtonWrap,
    {
      loading,
      css: cssStyle,
      className,
      onClick,
      children: [
        /* @__PURE__ */ jsx("div", { className: "container", children }),
        /* @__PURE__ */ jsx("img", { src: loadingSvg, style: { display: loading ? "block" : "none" } })
      ]
    }
  );
};
export {
  NormalButton
};
//# sourceMappingURL=index.js.map
