peer-at-code-web/lib/hooks/use-groups.ts
2023-04-11 11:23:50 +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 }));
}