Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
16 lines
370 B
Plaintext
16 lines
370 B
Plaintext
import React from "react";
|
|
import { useDropzone, DropzoneProps } from "../../";
|
|
|
|
export const Dropzone = ({ children, ...opts }: DropzoneProps) => {
|
|
const { ...state } = useDropzone(opts);
|
|
return children(state);
|
|
};
|
|
|
|
<Dropzone>
|
|
{({ getRootProps, getInputProps }) => (
|
|
<div {...getRootProps()}>
|
|
<input {...getInputProps()} />
|
|
</div>
|
|
)}
|
|
</Dropzone>;
|