51 lines
1.3 KiB
TypeScript
51 lines
1.3 KiB
TypeScript
"use client"
|
|
|
|
import { Button } from "@/registry/bases/radix/ui/button"
|
|
import {
|
|
Card,
|
|
CardContent,
|
|
CardDescription,
|
|
CardHeader,
|
|
CardTitle,
|
|
} from "@/registry/bases/radix/ui/card"
|
|
import {
|
|
Empty,
|
|
EmptyContent,
|
|
EmptyDescription,
|
|
EmptyHeader,
|
|
EmptyMedia,
|
|
EmptyTitle,
|
|
} from "@/registry/bases/radix/ui/empty"
|
|
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
|
|
|
|
export function FileUpload() {
|
|
return (
|
|
<Card>
|
|
<CardHeader>
|
|
<CardTitle>File Upload</CardTitle>
|
|
<CardDescription>Drag and drop or browse</CardDescription>
|
|
</CardHeader>
|
|
<CardContent>
|
|
<Empty className="border">
|
|
<EmptyHeader>
|
|
<EmptyMedia variant="icon">
|
|
<IconPlaceholder
|
|
lucide="UploadCloudIcon"
|
|
tabler="IconCloudUpload"
|
|
hugeicons="CloudUploadIcon"
|
|
phosphor="CloudArrowUpIcon"
|
|
remixicon="RiUploadCloudLine"
|
|
/>
|
|
</EmptyMedia>
|
|
<EmptyTitle>Upload files</EmptyTitle>
|
|
<EmptyDescription>PNG, JPG, PDF up to 10MB</EmptyDescription>
|
|
</EmptyHeader>
|
|
<EmptyContent>
|
|
<Button>Browse Files</Button>
|
|
</EmptyContent>
|
|
</Empty>
|
|
</CardContent>
|
|
</Card>
|
|
)
|
|
}
|