1
Fork 0
mirror of https://github.com/Steffo99/festa.git synced 2024-12-22 22:54:22 +00:00
festa/hooks/swr/useMyEventsSWR.ts

6 lines
166 B
TypeScript

import { Event } from "@prisma/client";
import { default as useSWR } from "swr";
export function useMyEventsSWR() {
return useSWR<Event[]>("/api/events/mine")
}