moved stores back into shared

This commit is contained in:
Sriram Hariharan
2023-03-10 23:38:39 -06:00
parent d06b0f9f7a
commit 32b73da959
12 changed files with 7 additions and 7 deletions

View File

@@ -0,0 +1,27 @@
import { createLocalStore, debugStore } from 'chrome-extension-toolkit';
/**
* A store that is used to store data that is only relevant during development
*/
interface IDevStore {
/** the tabId for the debug tab */
debugTabId?: number;
/** whether the debug tab is visible */
wasDebugTabVisible?: boolean;
/** whether we should enable extension reloading */
isExtensionReloading?: boolean;
/** whether we should enable tab reloading */
isTabReloading?: boolean;
/** The id of the tab that we want to reload (after the extension reloads itself ) */
reloadTabId?: number;
}
export const DevStore = createLocalStore<IDevStore>({
debugTabId: undefined,
isTabReloading: true,
wasDebugTabVisible: false,
isExtensionReloading: true,
reloadTabId: undefined,
});
debugStore({ DevStore });