import { useState as n } from "react";
const d = () => {
  const [t, e] = n(!1), [r, s] = n(!1);
  return { isFocus: t, isTabSelected: r, handlerFocus: () => {
    e(!0);
  }, handlerOnKeyUp: (o) => {
    o.key === "Tab" && s(!0);
  }, handlerOnBlur: () => {
    e(!1), s(!1);
  } };
};
export {
  d as useFormFocus
};
