feat(catalog): add sorting option

This commit is contained in:
Tom (plebeius.eth)
2024-05-31 18:18:42 +02:00
parent 5cf25f144d
commit 1ecb2ba13d
6 changed files with 67 additions and 26 deletions
+13
View File
@@ -0,0 +1,13 @@
import { create } from 'zustand';
interface SortingStore {
sortType: 'active' | 'new';
setSortType: (type: 'active' | 'new') => void;
}
const useSortingStore = create<SortingStore>((set) => ({
sortType: 'active',
setSortType: (type) => set({ sortType: type }),
}));
export default useSortingStore;