Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 415 Bytes
6f005bf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
import { PersistedState } from "runed";
const STORAGE_KEY = "hf_billing_org";
class Billing {
#organization = new PersistedState(STORAGE_KEY, "");
get organization() {
return this.#organization.current;
}
set organization(org: string) {
this.#organization.current = org;
}
reset = () => {
this.organization = "";
localStorage.removeItem(STORAGE_KEY);
};
}
export const billing = new Billing();
|