adding widget for displaying video previes inside message bubbles

This commit is contained in:
or-else
2022-12-12 22:09:17 -08:00
parent f31a3ebdcc
commit 489a05663a
+22
View File
@@ -0,0 +1,22 @@
// Element which shows static video preview:
// an image with duration and a play button in the middle.
import React from 'react';
export default class InlineVideo extends React.PureComponent {
constructor(props) {
super(props);
}
render() {
return (
<div className="inline-image video">
{React.createElement('img', this.props)}
<div className="play-control">
<i class="material-icons white bigger">play_arrow</i>
</div>
<div className="duration">1:12:45</div>
</div>
);
}
};