|
@@ -1,27 +1,29 @@
|
|
|
-const RecordStartIcon = require('./RecordStartIcon')
|
|
|
-const RecordStopIcon = require('./RecordStopIcon')
|
|
|
const { h } = require('preact')
|
|
|
|
|
|
module.exports = function RecordButton ({ recording, onStartRecording, onStopRecording }) {
|
|
|
if (recording) {
|
|
|
return (
|
|
|
- <button class="UppyButton--circular UppyButton--red UppyButton--sizeM uppy-Webcam-recordButton"
|
|
|
+ <button class="uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--video"
|
|
|
type="button"
|
|
|
title="Stop Recording"
|
|
|
aria-label="Stop Recording"
|
|
|
onclick={onStopRecording}>
|
|
|
- {RecordStopIcon()}
|
|
|
+ <svg aria-hidden="true" class="UppyIcon" width="100" height="100" viewBox="0 0 100 100">
|
|
|
+ <circle cx="50" cy="50" r="40" />
|
|
|
+ </svg>
|
|
|
</button>
|
|
|
)
|
|
|
}
|
|
|
|
|
|
return (
|
|
|
- <button class="UppyButton--circular UppyButton--red UppyButton--sizeM uppy-Webcam-recordButton"
|
|
|
+ <button class="uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--video"
|
|
|
type="button"
|
|
|
title="Begin Recording"
|
|
|
aria-label="Begin Recording"
|
|
|
onclick={onStartRecording}>
|
|
|
- {RecordStartIcon()}
|
|
|
+ <svg aria-hidden="true" class="UppyIcon" width="100" height="100" viewBox="0 0 100 100">
|
|
|
+ <rect x="15" y="15" width="70" height="70" />
|
|
|
+ </svg>
|
|
|
</button>
|
|
|
)
|
|
|
}
|