"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useCameraToggle = useCameraToggle;
const player_store_1 = require("../player-store");
function useCameraToggle() {
    const ingestCamera = (0, player_store_1.usePlayerStore)((x) => x.ingestCamera);
    const setIngestCamera = (0, player_store_1.usePlayerStore)((x) => x.setIngestCamera);
    const doSetIngestCamera = () => {
        setIngestCamera(ingestCamera === "user" ? "environment" : "user");
    };
    return { ingestCamera, doSetIngestCamera };
}
//# sourceMappingURL=useCameraToggle.js.map