import { useMemo as o } from "react";
import { useModuleDictionary as m } from "@m4l/core";
import { useSizeContainer as c } from "../../../../hooks/useSizeContainer/index.js";
import { getFinalTabs as u } from "../../helpers/getFinalTabs/getFinalTabs.js";
const p = (a) => {
  const { element: s, tabs: e, variant: i } = a, { getLabel: r } = m(), t = c(s, {
    throttleTime: 16,
    trailing: !0
  }), n = o(() => t ? {
    width: t.containerWidth,
    height: t.containerHeight
  } : { width: 0, height: 0 }, [t]);
  return { finalTabs: o(() => u(e, n, r, i), [e, n, r, i]) };
};
export {
  p as useTabsNavigator
};
