mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-28 20:40:06 +00:00
14 lines
385 B
JavaScript
14 lines
385 B
JavaScript
const { h } = require('preact')
|
|
const CameraIcon = require('./CameraIcon')
|
|
|
|
module.exports = ({ onSnapshot, i18n }) => {
|
|
return (
|
|
<button class="uppy-u-reset uppy-c-btn uppy-Webcam-button uppy-Webcam-button--picture"
|
|
type="button"
|
|
title={i18n('takePicture')}
|
|
aria-label={i18n('takePicture')}
|
|
onclick={onSnapshot}>
|
|
{CameraIcon()}
|
|
</button>
|
|
)
|
|
}
|