mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
14 lines
309 B
TypeScript
14 lines
309 B
TypeScript
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;
|