You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

SharedVideoDialog.js 875B

123456789101112131415161718192021222324252627282930313233
  1. // @flow
  2. import React from 'react';
  3. import { InputDialog } from '../../../base/dialog';
  4. import { connect } from '../../../base/redux';
  5. import { defaultSharedVideoLink } from '../../constants';
  6. import AbstractSharedVideoDialog from '../AbstractSharedVideoDialog';
  7. /**
  8. * Implements a component to render a display name prompt.
  9. */
  10. class SharedVideoDialog extends AbstractSharedVideoDialog<*> {
  11. /**
  12. * Implements React's {@link Component#render()}.
  13. *
  14. * @inheritdoc
  15. */
  16. render() {
  17. return (
  18. <InputDialog
  19. contentKey = 'dialog.shareVideoTitle'
  20. onSubmit = { this._onSetVideoLink }
  21. textInputProps = {{
  22. placeholder: defaultSharedVideoLink
  23. }} />
  24. );
  25. }
  26. _onSetVideoLink: string => boolean;
  27. }
  28. export default connect()(SharedVideoDialog);