@uppy/audio
Version:
Uppy plugin that records audio using the device’s microphone.
6 lines (5 loc) • 764 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "preact/jsx-runtime";
function DiscardButton({ onDiscard, i18n }) {
return (_jsx("button", { className: "uppy-u-reset uppy-c-btn uppy-Audio-button", type: "button", title: i18n('discardRecordedFile'), "aria-label": i18n('discardRecordedFile'), onClick: onDiscard, "data-uppy-super-focusable": true, children: _jsx("svg", { width: "13", height: "13", viewBox: "0 0 13 13", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", className: "uppy-c-icon", children: _jsxs("g", { fill: "#FFF", fillRule: "evenodd", children: [_jsx("path", { d: "M.496 11.367L11.103.76l1.414 1.414L1.911 12.781z" }), _jsx("path", { d: "M11.104 12.782L.497 2.175 1.911.76l10.607 10.606z" })] }) }) }));
}
export default DiscardButton;