import { FEAGlobals } from "../../../../../../common/Globals";
let launcherStore;
async function createStore(done) {
    const { err, data: store } = await FEAGlobals.FSBL.Clients.DistributedStoreClient.getStore({
        store: "Finsemble-AppLauncher-Store",
        global: true,
    });
    if (err) {
        FEAGlobals.FSBL.Clients.Logger.system.error("Error getting Finsemble-AppLauncher-Store", err);
        done(err, undefined);
    }
    else {
        launcherStore = store;
        await (launcherStore === null || launcherStore === void 0 ? void 0 : launcherStore.set(["defaultFolder"], "Advanced App Launcher"));
        done(null, launcherStore);
    }
}
function getStore() {
    return launcherStore;
}
export { createStore, getStore };
//# sourceMappingURL=LauncherStore.js.map