import { IconButton, Loader } from "@wix/design-system";
import { StopFilledSmall } from "@wix/wix-ui-icons-common";
import React from "react";
import { INLINE_AI_SPINNER, INLINE_AI_SPINNER_STOP_BUTTON } from "./data-hooks.js";
import styles from "./spinner-scss.js";
const Spinner = ({ onClick }) => {
  return /* @__PURE__ */ React.createElement("div", { className: styles.spinnerContainer, "data-hook": INLINE_AI_SPINNER }, /* @__PURE__ */ React.createElement(
    IconButton,
    {
      priority: "secondary",
      onClick,
      className: styles.stopButton,
      dataHook: INLINE_AI_SPINNER_STOP_BUTTON
    },
    /* @__PURE__ */ React.createElement(StopFilledSmall, null)
  ), /* @__PURE__ */ React.createElement(Loader, { size: "medium" }));
};
export {
  Spinner
};
//# sourceMappingURL=spinner.js.map
