import { jsx } from "react/jsx-runtime";
import { DSDatePicker } from "@elliemae/ds-date-picker";
import {
  Controller
} from "react-hook-form";
const DatePicker = ({
  name,
  defaultValue = "",
  rules = {},
  ...rest
}) => /* @__PURE__ */ jsx(
  Controller,
  {
    name,
    defaultValue,
    rules,
    render: ({ field }) => /* @__PURE__ */ jsx(DSDatePicker, { ...rest, ...field })
  }
);
export {
  DatePicker
};
