feat: implement 5chan-specific default board list

This commit is contained in:
plebeius
2025-11-03 22:06:18 +01:00
parent 4fd9a9c1a9
commit bae6faa929
13 changed files with 87 additions and 288 deletions
-25
View File
@@ -1,25 +0,0 @@
import { create } from 'zustand';
interface AutoSubscribeState {
checkingAccounts: Set<string>;
addCheckingAccount: (address: string) => void;
removeCheckingAccount: (address: string) => void;
isCheckingAccount: (address: string) => boolean;
reset: () => void;
}
export const useAutoSubscribeStore = create<AutoSubscribeState>((set, get) => ({
checkingAccounts: new Set(),
addCheckingAccount: (address) =>
set((state) => ({
checkingAccounts: new Set(state.checkingAccounts).add(address),
})),
removeCheckingAccount: (address) =>
set((state) => {
const newSet = new Set(state.checkingAccounts);
newSet.delete(address);
return { checkingAccounts: newSet };
}),
isCheckingAccount: (address) => get().checkingAccounts.has(address),
reset: () => set({ checkingAccounts: new Set() }),
}));