CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/lib/balance.ts
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2021 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import { createContext } from "react";
7
8
export interface StoreBalance {
9
balance?: number;
10
refreshBalance: () => Promise<void>;
11
}
12
13
export const StoreBalanceContext = createContext<StoreBalance>({
14
refreshBalance: async () => {},
15
});
16
17