mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
16 lines
365 B
TypeScript
16 lines
365 B
TypeScript
import type { Samples } from '@blitzkit/core';
|
|
import { create } from 'zustand';
|
|
import { createContextualStore } from '../core/zustand/createContextualStore';
|
|
|
|
export interface Charts {
|
|
period: ChartsPeriod;
|
|
}
|
|
|
|
export type ChartsPeriod = keyof Samples;
|
|
|
|
export const Charts = createContextualStore(() =>
|
|
create<Charts>()(() => ({
|
|
period: 'd_30',
|
|
})),
|
|
);
|