Files
blitzkit/src/stores/tankopediaSort.ts
T

15 lines
416 B
TypeScript
Raw Normal View History

2024-07-08 20:12:46 -05:00
'use client';
import { createNextSafeStore } from '../core/zustand/createNextSafeStore';
2024-07-02 19:19:15 -05:00
import { TankopediaSortBy, TankopediaSortDirection } from './tankopedia';
export interface TankopediaSort {
by: TankopediaSortBy;
direction: TankopediaSortDirection;
}
2024-07-08 20:12:46 -05:00
export const { Provider, use, useMutation, useStore } =
createNextSafeStore<TankopediaSort>({
by: 'meta.none',
direction: 'descending',
});