import { useFormatter as c } from "@m4l/graphics";
import { useMemo as u } from "react";
import { useComponentSize as d } from "../../../../../../hooks/useComponentSize/index.js";
import { useModuleSkeleton as p } from "@m4l/core";
const F = (n) => {
  const {
    error: t,
    size: s = "medium",
    disabled: o,
    variant: r
  } = n, { dateFormatter: m } = c(), { currentSize: e } = d(s), i = p(), { dateFormat: a } = m;
  return {
    ownerState: u(() => ({
      size: e,
      error: !!t,
      disabled: !!o,
      variant: r
    }), [e, t, o, r]),
    dateFormat: a,
    currentSize: e,
    isSkeleton: i
  };
};
export {
  F as useDateRangePicker
};
