jiti-meet/react/features/shared-video/components/native/SharedVideoDialog.js

34 lines
875 B
JavaScript
Raw Normal View History

2020-06-12 10:15:16 +00:00
// @flow
import React from 'react';
import { InputDialog } from '../../../base/dialog';
import { connect } from '../../../base/redux';
import { defaultSharedVideoLink } from '../../constants';
import AbstractSharedVideoDialog from '../AbstractSharedVideoDialog';
2020-06-12 10:15:16 +00:00
/**
* Implements a component to render a display name prompt.
*/
class SharedVideoDialog extends AbstractSharedVideoDialog<*> {
2020-06-12 10:15:16 +00:00
/**
* Implements React's {@link Component#render()}.
*
* @inheritdoc
*/
render() {
return (
<InputDialog
contentKey = 'dialog.shareVideoTitle'
onSubmit = { this._onSetVideoLink }
textInputProps = {{
placeholder: defaultSharedVideoLink
2020-06-12 10:15:16 +00:00
}} />
);
}
_onSetVideoLink: string => boolean;
}
export default connect()(SharedVideoDialog);