mirror of
https://github.com/Steffo99/festa.git
synced 2024-12-22 22:54:22 +00:00
6 lines
194 B
TypeScript
6 lines
194 B
TypeScript
import { Event } from "@prisma/client";
|
|
import useSWR, { SWRResponse } from "swr";
|
|
|
|
export function useEventDetail(slug: string): SWRResponse<Event> {
|
|
return useSWR(`/api/events/${slug}`)
|
|
}
|