"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.toggleFullscreen = toggleFullscreen;
const enterFullscreen_1 = require("./enterFullscreen");
const leaveFullscreen_1 = require("./leaveFullscreen");
function toggleFullscreen(system) {
    const { api: { document }, } = system;
    const isFullscreen = !!document.fullscreenElement;
    if (isFullscreen) {
        (0, leaveFullscreen_1.leaveFullscreen)(system);
    }
    else {
        (0, enterFullscreen_1.enterFullscreen)(system);
    }
}
//# sourceMappingURL=toggleFullscreen.js.map