mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-11 01:22:31 +00:00
Also unify the mobile and web features into one, even though internally they still have separate ways to enable the functionality.
34 lines
875 B
JavaScript
34 lines
875 B
JavaScript
// @flow
|
|
|
|
import React from 'react';
|
|
|
|
import { InputDialog } from '../../../base/dialog';
|
|
import { connect } from '../../../base/redux';
|
|
import { defaultSharedVideoLink } from '../../constants';
|
|
import AbstractSharedVideoDialog from '../AbstractSharedVideoDialog';
|
|
|
|
/**
|
|
* Implements a component to render a display name prompt.
|
|
*/
|
|
class SharedVideoDialog extends AbstractSharedVideoDialog<*> {
|
|
/**
|
|
* Implements React's {@link Component#render()}.
|
|
*
|
|
* @inheritdoc
|
|
*/
|
|
render() {
|
|
return (
|
|
<InputDialog
|
|
contentKey = 'dialog.shareVideoTitle'
|
|
onSubmit = { this._onSetVideoLink }
|
|
textInputProps = {{
|
|
placeholder: defaultSharedVideoLink
|
|
}} />
|
|
);
|
|
}
|
|
|
|
_onSetVideoLink: string => boolean;
|
|
}
|
|
|
|
export default connect()(SharedVideoDialog);
|