@uppy/audio
Version:
Uppy plugin that records audio using the device’s microphone.
6 lines (5 loc) • 691 B
JavaScript
import { jsx as _jsx } from "preact/jsx-runtime";
function SubmitButton({ onSubmit, i18n }) {
return (_jsx("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": true, children: _jsx("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", children: _jsx("path", { fill: "#fff", fillRule: "nonzero", d: "M10.66 0L12 1.31 4.136 9 0 4.956l1.34-1.31L4.136 6.38z" }) }) }));
}
export default SubmitButton;