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