diff --git a/src/widgets/inline-video.jsx b/src/widgets/inline-video.jsx new file mode 100644 index 00000000..01f95f54 --- /dev/null +++ b/src/widgets/inline-video.jsx @@ -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 ( +
+ {React.createElement('img', this.props)} +
+ play_arrow +
+
1:12:45
+
+ ); + } +};