mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-09 20:30:54 -05:00
21 lines
385 B
TypeScript
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();
|