UNPKG

@org_educaresco/viam.profileimage

Version:
13 lines (11 loc) 264 B
const _getPhoto = (showCamera, webcam) => { if (showCamera === false) { return { _showCamera: true, _photo: "" }; } const photo = webcam.getScreenshot(); return { _showCamera: false, _photo: photo }; }; export default _getPhoto;