Files
blitzkit/packages/website/src/stores/tankopediaSort.ts
T

17 lines
413 B
TypeScript
Raw Normal View History

2024-09-17 22:13:35 -05:00
import { map } from 'nanostores';
import {
2024-09-17 22:13:35 -05:00
type TankopediaSortBy,
type TankopediaSortDirection,
2024-07-09 14:43:33 -05:00
} from './tankopediaPersistent';
2024-07-02 19:19:15 -05:00
export interface TankopediaSort {
by: TankopediaSortBy;
direction: TankopediaSortDirection;
}
export const initialTankopediaSort: TankopediaSort = {
2024-09-17 22:13:35 -05:00
by: 'meta.none',
direction: 'descending',
};
export const $tankopediaSort = map<TankopediaSort>(initialTankopediaSort);