feat: enhancements (#2107)

* refactor
* fix
* update packages
This commit is contained in:
Philip Okugbe
2026-04-13 23:34:40 +01:00
committed by GitHub
parent bd68e47e03
commit 4056bd0104
18 changed files with 412 additions and 155 deletions
@@ -1,4 +1,5 @@
import api from "@/lib/api-client";
import { IPagination } from "@/lib/types";
export async function watchSpace(
spaceId: string,
@@ -18,6 +19,11 @@ export async function unwatchSpace(
return req.data;
}
export async function getWatchedSpaceIds(): Promise<IPagination<string>> {
const req = await api.post<IPagination<string>>("/spaces/watched-ids");
return req.data;
}
export async function getSpaceWatchStatus(
spaceId: string,
): Promise<{ watching: boolean }> {