Files
dpage-editor/src/components/VideoUploadZone.tsx
T
hamid zarghami a010059ef1 add video shape
2025-12-28 12:16:35 +03:30

37 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { type FC } from "react";
import { DocumentUpload, VideoSquare } from "iconsax-react";
type VideoUploadZoneProps = {
getRootProps: () => React.HTMLAttributes<HTMLDivElement>;
getInputProps: () => React.InputHTMLAttributes<HTMLInputElement>;
};
const VideoUploadZone: FC<VideoUploadZoneProps> = ({ getRootProps, getInputProps }) => {
return (
<div
{...getRootProps()}
className="w-full py-8 border border-dashed border-description flex flex-col justify-center items-center gap-4 rounded-2xl cursor-pointer hover:bg-gray-50 transition-colors"
>
<input {...getInputProps()} />
<VideoSquare
size={32}
color="#8C90A3"
variant="Outline"
/>
<div className="text-description text-xs">
ویدیو مورد نظر را آپلود کنید
</div>
<div className="flex items-center gap-2">
<DocumentUpload
size={16}
color="black"
/>
<div className="text-xs">آپلود</div>
</div>
</div>
);
};
export default VideoUploadZone;