inference-playground / src /lib /state /billing.svelte.ts
Thomas G. Lopes
org billing
6f005bf
raw
history blame
415 Bytes
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();