Files
blitzkit/packages/website/src/stores/tankPerformanceEphemeral.ts
T

15 lines
451 B
TypeScript
Raw Normal View History

2024-10-22 15:08:23 -05:00
import type { Samples } from '@blitzkit/core';
2024-10-21 21:03:49 -05:00
import { create } from 'zustand';
import { createContextualStore } from '../core/zustand/createContextualStore';
export interface TankPerformanceEphemeral {
playerCountPeriod: PlayerCountPeriod;
}
2024-10-22 15:08:23 -05:00
export type PlayerCountPeriod = keyof Samples;
2024-10-21 21:03:49 -05:00
export const TankPerformanceEphemeral = createContextualStore(() =>
create<TankPerformanceEphemeral>()(() => ({
2024-10-22 15:08:23 -05:00
playerCountPeriod: 'd_30',
2024-10-21 21:03:49 -05:00
})),
);