import { useCallback as e } from "react";
import { useShopActions as i } from "../../internal/useShopActions.js";
const l = () => {
  const { translateContentUp: t, translateContentDown: o } = i(), r = e(
    (n) => {
      if (n.current) {
        const c = n.current.getBoundingClientRect();
        t({ inputYPosition: c.bottom });
      }
    },
    [t]
  ), s = e(() => {
    o();
  }, [o]);
  return {
    onFocus: r,
    onBlur: s
  };
};
export {
  l as useKeyboardAvoidingView
};
//# sourceMappingURL=useKeyboardAvoidingView.js.map
