"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.handleOSDRequests = handleOSDRequests;
const osdCommands_1 = require("./osdCommands");
function handleOSDRequests(onCommand, dispatch, frontApplet) {
    onCommand(async (commandEvent) => {
        switch (commandEvent.command.type) {
            case osdCommands_1.ShowOSDRequest:
                await frontApplet.osd.showOSD();
                await dispatch({
                    type: osdCommands_1.ShowOSDResult,
                    result: {},
                });
                break;
            default:
        }
    });
}
//# sourceMappingURL=handleOsdRequests.js.map