svrjs-nextjs-website/lib/uploadthing.ts
2024-06-20 23:16:48 +05:30

9 lines
293 B
TypeScript

import {
generateUploadButton,
generateUploadDropzone,
} from "@uploadthing/react";
import type { OurFileRouter } from "@/app/api/uploadthing/core";
export const UploadButton = generateUploadButton<OurFileRouter>();
export const UploadDropzone = generateUploadDropzone<OurFileRouter>();