peer-at-code-web/lib/hooks/use-groups.ts
2023-09-04 13:39:18 +02:00

6 lines
181 B
TypeScript

import useSWR from 'swr';
import { getGroups } from '../groups';
export function useGroups({ token }: { token: string }) {
return useSWR('groups', () => getGroups({ token }));
}