feat: upgrade TankSort

This commit is contained in:
TrèsAbhi committed 2025-09-01 18:13:41 -05:00
1 parent 87b6a36520
commit 4efdaaf7c9
9 files changed
+39 -42

No files matched your search

@@ -1,17 +1,15 @@
import { map } from 'nanostores';
import { Varuna } from 'varuna';
import {
type TankopediaSortBy,
type TankopediaSortDirection,
} from './tankopediaPersistent';
export interface TankopediaSort {
export interface TankSort {
by: TankopediaSortBy;
direction: TankopediaSortDirection;
}
export const initialTankopediaSort: TankopediaSort = {
export const TankSort = new Varuna<TankSort>({
by: 'meta.none',
direction: 'descending',
};
export const $tankopediaSort = map<TankopediaSort>(initialTankopediaSort);
});