UNPKG

@nexusui/components

Version:

These are custom components specially-developed for NexusUI applications. They will make your life easier by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your application.

3 lines (2 loc) 473 B
"use client"; "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react-dropzone"),o=require("./FileDragDrop.component.js");exports.FileDragDrop=t=>{const{open:p,getRootProps:s,getInputProps:i,isDragActive:n,isDragAccept:c,isDragReject:a}=r.useDropzone(t.dropZoneOptions),g={open:p,getRootProps:s,getInputProps:i,isDragActive:n,isDragAccept:c,isDragReject:a};return e.jsx(o.FileDragDropComponent,{...t,...g})};