mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
feat(catalog): add reply-count sorting mode
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
import { create } from 'zustand';
|
||||
|
||||
/** Catalog-only sort state. Used by catalog view sort selector. */
|
||||
export type CatalogSortType = 'active' | 'new' | 'replyCount';
|
||||
|
||||
interface SortingStore {
|
||||
sortType: 'active' | 'new';
|
||||
setSortType: (type: 'active' | 'new') => void;
|
||||
sortType: CatalogSortType;
|
||||
setSortType: (type: CatalogSortType) => void;
|
||||
}
|
||||
|
||||
const useSortingStore = create<SortingStore>((set) => ({
|
||||
|
||||
Reference in New Issue
Block a user