refactor: activity manager (#17943)

This commit is contained in:
Daniel Dietzler
2025-04-30 17:50:38 +02:00
committed by GitHub
parent be5cc2cdf5
commit 436cff72b5
5 changed files with 175 additions and 206 deletions
-11
View File
@@ -1,11 +0,0 @@
import { writable } from 'svelte/store';
export const numberOfComments = writable<number>(0);
export const setNumberOfComments = (number: number) => {
numberOfComments.set(number);
};
export const updateNumberOfComments = (addOrRemove: 1 | -1) => {
numberOfComments.update((n) => n + addOrRemove);
};