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