import React from "react";
import { useFormatDate } from "./useFormatDate";
export const FormatDate = _ref => {
  let {
    value,
    long,
    dateFormat
  } = _ref;
  const formatter = useFormatDate(dateFormat);
  return /*#__PURE__*/React.createElement(React.Fragment, null, formatter(value, long));
};
FormatDate.defaultProps = {
  long: true
};
//# sourceMappingURL=FormatDate.js.map