import { useState as l, useCallback as d } from "react";
const s = ({
  onMsg: e
}) => {
  const [n, t] = l("none"), a = d(
    (o) => {
      t(o), e?.({
        type: "on_tokens_modal_toggled",
        isOpen: o !== "none"
      });
    },
    [e]
  );
  return { tokenModalOpen: n, updateTokenModalState: a };
};
export {
  s as useTokenModal
};
//# sourceMappingURL=useTokenModal.js.map
