mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-23 11:39:50 +02:00
feat: drop
This commit is contained in:
1 parent
0db4be4d20
commit
d851a05f53
10 files changed
+204
-39
No files matched your search
@@ -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(() => []),
|
||||
})),
|
||||
),
|
||||
);
|
||||
Reference in new issue
Block a user