"use client";
import { useRef as n, useState as c, useEffect as r } from "react";
const u = (o = []) => {
  const t = n(null), [l, s] = c(!1);
  return r(() => {
    const e = t.current;
    if (e) {
      const i = e.clientWidth < e.scrollWidth || e.clientHeight < e.scrollHeight;
      s(i);
    }
  }, o), { elementRef: t, showTooltip: l };
};
export {
  u as useShowTooltipOnOverflow
};
//# sourceMappingURL=useShowTooltipOnOverflow.mjs.map
