"use client";
import { useMulti as i } from "./selection/useMulti.js";
import { useRange as s } from "./selection/useRange.js";
import { useSingle as c } from "./selection/useSingle.js";
function f(e, n) {
  const t = c(e, n), u = i(e, n), r = s(e, n);
  switch (e.mode) {
    case "single":
      return t;
    case "multiple":
      return u;
    case "range":
      return r;
    default:
      return;
  }
}
export {
  f as useSelection
};
