uppy/packages/@uppy/audio/src/SubmitButton.jsx
Antoine du Hamel 50f5f910b1
@uppy/audio: refactor to ESM (#3470)
npm package is still CommonJS, the plan is to switch that in the
next semver-major.
2022-03-09 11:29:39 +01:00

28 lines
733 B
JavaScript

import { h } from 'preact'
function SubmitButton ({ onSubmit, i18n }) {
return (
<button
className="uppy-u-reset uppy-c-btn uppy-Audio-button uppy-Audio-button--submit"
type="button"
title={i18n('submitRecordedFile')}
aria-label={i18n('submitRecordedFile')}
onClick={onSubmit}
data-uppy-super-focusable
>
<svg
width="12"
height="9"
viewBox="0 0 12 9"
xmlns="http://www.w3.org/2000/svg"
aria-hidden="true"
focusable="false"
className="uppy-c-icon"
>
<path fill="#fff" fillRule="nonzero" d="M10.66 0L12 1.31 4.136 9 0 4.956l1.34-1.31L4.136 6.38z" />
</svg>
</button>
)
}
export default SubmitButton