@uppy/webcam
Version:
Uppy plugin that takes photos or records videos using the device's camera.
15 lines • 470 B
JavaScript
import { h } from 'preact';
export default function PermissionsScreen(_ref) {
let {
icon,
i18n,
hasCamera
} = _ref;
return h("div", {
className: "uppy-Webcam-permissons"
}, h("div", {
className: "uppy-Webcam-permissonsIcon"
}, icon()), h("div", {
className: "uppy-Webcam-title"
}, hasCamera ? i18n('allowAccessTitle') : i18n('noCameraTitle')), h("p", null, hasCamera ? i18n('allowAccessDescription') : i18n('noCameraDescription')));
}