import { jsx as t } from "react/jsx-runtime";
import p from "../../hooks/useDataTableStaticContext.js";
import k from "../../../date-picker/DatePicker.js";
import x from "../../../box/Box.js";
import D from "../../../date-range-picker/DateRangePicker.js";
const l = ({
  value: i,
  onChange: r,
  placeholder: a,
  isDisabled: o,
  disableDate: m,
  format: s,
  mode: n
}) => {
  const { size: f } = p(), c = f === "sm" ? "sm" : "default";
  return n === "single" ? /* @__PURE__ */ t(
    k,
    {
      value: i,
      onChange: (e) => {
        e && r(e);
      },
      placeholder: a,
      isDisabled: o,
      disableDate: m,
      format: s,
      size: c
    }
  ) : /* @__PURE__ */ t(x, { className: "w-[216px]", children: /* @__PURE__ */ t(
    D,
    {
      value: i,
      onChange: (e) => {
        e && r(e);
      },
      placeholder: a,
      isDisabled: o,
      disableDate: m,
      format: s,
      size: c
    }
  ) });
};
l.displayName = "DataTableDatePicker";
export {
  l as default
};
//# sourceMappingURL=DataTableDatePicker.js.map
