import { useContext as m } from "react";
import { devUseWarning as u } from "../../_util/warning.mjs";
import { FormItemInputContext as o } from "../context.mjs";
const e = () => {
  const {
    status: t,
    errors: r = [],
    warnings: s = []
  } = m(o);
  if (process.env.NODE_ENV !== "production") {
    const n = u("Form.Item");
    process.env.NODE_ENV !== "production" && n(t !== void 0, "usage", "Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus");
  }
  return {
    status: t,
    errors: r,
    warnings: s
  };
};
e.Context = o;
const p = e;
export {
  p as default
};
