import React from "react";
export const useVerticalScale = (viewports) => {
    return React.useMemo(() => {
        var _a;
        if (!viewports) {
            return 1;
        }
        return (_a = viewports.find((item) => !!item.verticalScale)) === null || _a === void 0 ? void 0 : _a.verticalScale;
    }, [viewports]);
};
//# sourceMappingURL=viewport.js.map