import { useCallback as l } from "react";
const h = ({
  open: r,
  setOpen: u,
  setValueState: t,
  setIsPending: a,
  showLoadingOnType: c,
  openOnFocus: f
}) => {
  const m = l(
    (o) => {
      t(o), r || u(!0), c && a(!0);
    },
    [r, t, c, u, a]
  ), n = l(() => {
    f && u(!0);
  }, [f, u]);
  return { handleInputOnValueChange: m, handleInputOnFocus: n };
};
export {
  h as useCommandInput
};
//# sourceMappingURL=useCommandInput.js.map
