Slack bot management dashboard (#483)

This commit is contained in:
Chris Weaver
2023-09-26 14:03:27 -07:00
committed by GitHub
parent 0c58c8d6cb
commit d41d844116
24 changed files with 1401 additions and 49 deletions

View File

@@ -1,10 +1,13 @@
import { fetcher } from "@/lib/fetcher";
import { errorHandlingFetcher } from "@/lib/fetcher";
import { DocumentSet } from "@/lib/types";
import useSWR, { mutate } from "swr";
export const useDocumentSets = () => {
const url = "/api/manage/document-set";
const swrResponse = useSWR<DocumentSet<any, any>[]>(url, fetcher);
const swrResponse = useSWR<DocumentSet<any, any>[]>(
url,
errorHandlingFetcher
);
return {
...swrResponse,