import { useRef as a } from "react";
import { useWindowEvent as t } from "./use-window-event.js";
var o = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(o || {});
function n() {
  let e = a(0);
  return t(!0, "keydown", (r) => {
    r.key === "Tab" && (e.current = r.shiftKey ? 1 : 0);
  }, !0), e;
}
export {
  o as Direction,
  n as useTabDirection
};
