sendou.ink/app/components/ramp/store.ts
2023-04-16 11:44:30 +03:00

21 lines
385 B
TypeScript

/* eslint-disable */
// @ts-nocheck
//
// From: https://github.com/intergi/pw-react-component
//
class Store {
units = {};
getUnitId = (unit) => {
if (typeof this.units[unit] === "undefined") {
this.units[unit] = 1;
return `pw-${unit}`;
} else {
++this.units[unit];
return `pw-${unit}${this.units[unit]}`;
}
};
}
export default new Store();