FileDropzoneOverlay.tsx 441 B

1234567891011121314151617181920
  1. import type { JSX } from 'react';
  2. type Props = {
  3. isEnabled: boolean;
  4. };
  5. export const FileDropzoneOverlay = (props: Props): JSX.Element => {
  6. const { isEnabled } = props;
  7. if (isEnabled) {
  8. return (
  9. <div className="overlay overlay-dropzone-active">
  10. <span className="overlay-content">
  11. <span className="overlay-icon material-symbols-outlined"></span>
  12. </span>
  13. </div>
  14. );
  15. }
  16. return <></>;
  17. };