"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.usePlayerDimensions = usePlayerDimensions;
const react_native_1 = require("react-native");
const player_store_1 = require("../player-store");
/**
 * usePlayerDimensions
 * Returns player and device dimensions, and whether the player aspect ratio is greater than the device's.
 */
function usePlayerDimensions() {
    const { width, height } = react_native_1.Dimensions.get("window");
    const pHeight = Number((0, player_store_1.usePlayerStore)((x) => x.playerHeight)) || 0;
    const pWidth = Number((0, player_store_1.usePlayerStore)((x) => x.playerWidth)) || 0;
    const isPlayerRatioGreater = pHeight > 0 && pWidth > 0 ? pWidth / pHeight > width / height : false;
    return {
        width,
        height,
        pWidth,
        pHeight,
        isPlayerRatioGreater,
    };
}
//# sourceMappingURL=usePlayerDimensions.js.map