FileDropzoneOverlay.tsx 424 B

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