Revert "feat: progress on tankopedia search"

This reverts commit c873c32d09.
This commit is contained in:
TrèsAbhi committed 2024-09-17 21:43:31 -05:00
1 parent 6288e3f69a
commit 4c5ad23edf
10 files changed
+71 -62

No files matched your search

+10 -6
View File
@@ -1,5 +1,6 @@
import { map } from 'nanostores';
import type {
import { create } from 'zustand';
import { createContextualSafeStore } from '../core/zustand/createContextualSafeStore';
import {
TankopediaSortBy,
TankopediaSortDirection,
} from './tankopediaPersistent';
@@ -9,7 +10,10 @@ export interface TankopediaSort {
direction: TankopediaSortDirection;
}
export const $tankopediaSort = map<TankopediaSort>({
by: 'meta.none',
direction: 'descending',
});
export const { Provider, use, useMutation, useStore } =
createContextualSafeStore(() =>
create<TankopediaSort>()(() => ({
by: 'meta.none',
direction: 'descending',
})),
);