import { jsx as e } from "react/jsx-runtime";
import { DirectionSwitcher as i } from "../components/DirectionSwitcher.js";
import { b as r, G as n } from "../config-BDnHptBC.js";
import "ethers";
import "../machine/machine.js";
import { fireEvent as s } from "../machine/events/utils/fireEvent.js";
const S = () => {
  const { ctx: o } = r(), { lockSwapDirection: t } = n();
  return /* @__PURE__ */ e(
    i,
    {
      isLoading: o.quoteStatus === "pending",
      isEnabled: !t && !!(o.sourceToken && o.targetToken),
      onClick: () => s("tokenSelectRotate", null)
    }
  );
};
export {
  S as SwapDirectionSwitcher
};
//# sourceMappingURL=SwapDirectionSwitcher.js.map
