mirror of
https://github.com/immich-app/immich.git
synced 2025-01-10 13:56:47 +01:00
9d01885b58
* feat: disable activity * fix: disable reactions * fix: tests * fix: tests * fix: tests * pr feedback * pr feedback * chore: styling & wording * refactor component --------- Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
11 lines
308 B
TypeScript
11 lines
308 B
TypeScript
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);
|
|
};
|