mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-19 11:53:25 +01:00
feat: start of charts
This commit is contained in:
1 parent
221492c645
commit
973d24a615
11 files changed
+98
-55
No files matched your search
@@ -0,0 +1,28 @@
|
||||
import { create } from 'zustand';
|
||||
import { createContextualStore } from '../core/zustand/createContextualStore';
|
||||
|
||||
export interface TankPerformanceEphemeral {
|
||||
playerCountPeriod: PlayerCountPeriod;
|
||||
mode: TankPerformanceMode;
|
||||
}
|
||||
|
||||
export enum TankPerformanceMode {
|
||||
Table,
|
||||
Charts,
|
||||
}
|
||||
|
||||
export enum PlayerCountPeriod {
|
||||
Past120Days = 'd_120',
|
||||
Past90Days = 'd_90',
|
||||
Past60Days = 'd_60',
|
||||
ThisMonth = 'd_30',
|
||||
ThisWeek = 'd_7',
|
||||
Yesterday = 'd_1',
|
||||
}
|
||||
|
||||
export const TankPerformanceEphemeral = createContextualStore(() =>
|
||||
create<TankPerformanceEphemeral>()(() => ({
|
||||
playerCountPeriod: PlayerCountPeriod.ThisMonth,
|
||||
mode: TankPerformanceMode.Table,
|
||||
})),
|
||||
);
|
||||
Reference in new issue
Block a user