"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useKeyboardSlide = useKeyboardSlide;
const useKeyboard_1 = require("../hooks/useKeyboard");
const useOuterAndInnerDimensions_1 = require("../hooks/useOuterAndInnerDimensions");
function useKeyboardSlide() {
    const { keyboardHeight } = (0, useKeyboard_1.useKeyboard)();
    const { outerHeight, innerHeight } = (0, useOuterAndInnerDimensions_1.useOuterAndInnerDimensions)();
    let slideKeyboard = 0;
    if (keyboardHeight > 0) {
        slideKeyboard = -keyboardHeight + (outerHeight - innerHeight);
    }
    return { keyboardHeight, slideKeyboard };
}
//# sourceMappingURL=useKeyboardSlide.js.map