import { Media } from "ui/elements"; import { Scrollable } from "ui/layouts/AppShell/AppShell"; export default function DropzoneElementTest() { return (
{/*
Dropzone no auto avif only Dropzone User Avatar 1 (fully customized)
*/}
Dropzone User Avatar 1 (overwrite)
Dropzone User Avatar 1 (overwrite)
{/*
Dropzone User Avatar 1
Dropzone Container blank w/ query
*/} {/*
Dropzone Container blank
Dropzone Post 12
*/}
); } function CustomUserAvatarDropzone() { const { wrapperRef, inputProps, showPlaceholder, actions: { openFileInput }, } = Media.useDropzone(); const { isOver, isOverAccepted, files: [file] = [], } = Media.useDropzoneState(); return (
{showPlaceholder && <>{isOver && isOverAccepted ? "let it drop" : "drop here"}} {file && ( )}
); } function Custom() { const { wrapperRef, inputProps, showPlaceholder, actions: { openFileInput }, } = Media.useDropzone(); const { isOver, isOverAccepted, files } = Media.useDropzoneState(); return (
asdf {showPlaceholder && <>{isOver && isOverAccepted ? "let it drop" : "drop here"}} {files.map((file) => ( ))}
); }