DiscardButton.jsx 783 B

123456789101112131415161718192021222324252627282930
  1. import { h } from 'preact'
  2. function DiscardButton ({ onDiscard, i18n }) {
  3. return (
  4. <button
  5. className="uppy-u-reset uppy-c-btn uppy-Audio-button"
  6. type="button"
  7. title={i18n('discardRecordedFile')}
  8. aria-label={i18n('discardRecordedFile')}
  9. onClick={onDiscard}
  10. data-uppy-super-focusable
  11. >
  12. <svg
  13. width="13"
  14. height="13"
  15. viewBox="0 0 13 13"
  16. xmlns="http://www.w3.org/2000/svg"
  17. aria-hidden="true"
  18. className="uppy-c-icon"
  19. >
  20. <g fill="#FFF" fillRule="evenodd">
  21. <path d="M.496 11.367L11.103.76l1.414 1.414L1.911 12.781z" />
  22. <path d="M11.104 12.782L.497 2.175 1.911.76l10.607 10.606z" />
  23. </g>
  24. </svg>
  25. </button>
  26. )
  27. }
  28. export default DiscardButton