initial commit
This commit is contained in:
22
app/settings/page.tsx
Normal file
22
app/settings/page.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
"use client";
|
||||
|
||||
import { UploadButton } from "../../lib/uploadthing";
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<main className="flex min-h-screen flex-col items-center justify-between p-24">
|
||||
<UploadButton
|
||||
endpoint="imageUploader"
|
||||
onClientUploadComplete={(res) => {
|
||||
// Do something with the response
|
||||
console.log("Files: ", res);
|
||||
alert("Upload Completed");
|
||||
}}
|
||||
onUploadError={(error: Error) => {
|
||||
// Do something with the error.
|
||||
alert(`ERROR! ${error.message}`);
|
||||
}}
|
||||
/>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user