svrjs-nextjs-website/lib/uploadthing.ts

10 lines
293 B
TypeScript
Raw Normal View History

2024-06-20 19:46:48 +02:00
import {
generateUploadButton,
generateUploadDropzone,
} from "@uploadthing/react";
import type { OurFileRouter } from "@/app/api/uploadthing/core";
export const UploadButton = generateUploadButton<OurFileRouter>();
export const UploadDropzone = generateUploadDropzone<OurFileRouter>();