UNPKG

uppy

Version:

Extensible JavaScript file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Instagram, Dropbox, Google Drive, S3 and more :dog:

36 lines (31 loc) 988 B
'use strict'; var RecordStartIcon = require('./RecordStartIcon'); var RecordStopIcon = require('./RecordStopIcon'); var _require = require('preact'), h = _require.h; module.exports = function RecordButton(_ref) { var recording = _ref.recording, onStartRecording = _ref.onStartRecording, onStopRecording = _ref.onStopRecording; if (recording) { return h( 'button', { 'class': 'UppyButton--circular UppyButton--red UppyButton--sizeM uppy-Webcam-recordButton', type: 'button', title: 'Stop Recording', 'aria-label': 'Stop Recording', onclick: onStopRecording }, RecordStopIcon() ); } return h( 'button', { 'class': 'UppyButton--circular UppyButton--red UppyButton--sizeM uppy-Webcam-recordButton', type: 'button', title: 'Begin Recording', 'aria-label': 'Begin Recording', onclick: onStartRecording }, RecordStartIcon() ); }; //# sourceMappingURL=RecordButton.js.map