feat: drop

This commit is contained in:
tresabhi committed 2024-11-17 16:34:18 -06:00
1 parent 0db4be4d20
commit d851a05f53
10 files changed
+204 -39

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
import { create } from 'zustand';
import { subscribeWithSelector } from 'zustand/middleware';
import { tierListRows } from '../components/TierList/Table/constants';
import { createContextualStore } from '../core/zustand/createContextualStore';
export interface TierList {
dragging: boolean;
tanks: number[][];
}
export const TierList = createContextualStore(() =>
create<TierList>()(
subscribeWithSelector<TierList>(() => ({
dragging: false,
tanks: tierListRows.map(() => []),
})),
),
);