svrjs-nextjs-website/lib/uploadthing.ts

9 lines
292 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>();