2020-06-12 13:15:16 +03:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
|
|
import { Component } from 'react';
|
|
|
|
|
import type { Dispatch } from 'redux';
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The type of the React {@code Component} props of
|
2021-03-03 16:37:38 +02:00
|
|
|
* {@link AbstractSharedVideoDialog}.
|
2020-06-12 13:15:16 +03:00
|
|
|
*/
|
|
|
|
|
export type Props = {
|
|
|
|
|
|
|
|
|
|
/**
|
2021-03-03 16:37:38 +02:00
|
|
|
* Invoked to update the shared video link.
|
2020-06-12 13:15:16 +03:00
|
|
|
*/
|
|
|
|
|
dispatch: Dispatch<any>,
|
|
|
|
|
|
|
|
|
|
/**
|
2021-03-03 16:37:38 +02:00
|
|
|
* Function to be invoked after typing a valid video.
|
|
|
|
|
*/
|
2021-04-16 12:43:34 +03:00
|
|
|
onPostSubmit: Function,
|
2021-03-03 16:37:38 +02:00
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Invoked to obtain translated strings.
|
2020-06-12 13:15:16 +03:00
|
|
|
*/
|
2021-03-03 16:37:38 +02:00
|
|
|
t: Function
|
2020-06-12 13:15:16 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
2021-03-03 16:37:38 +02:00
|
|
|
* Implements an abstract class for {@code SharedVideoDialog}.
|
2020-06-12 13:15:16 +03:00
|
|
|
*/
|
2021-03-03 16:37:38 +02:00
|
|
|
export default class AbstractSharedVideoDialog<S: *> extends Component < Props, S > {
|
2021-05-13 14:36:19 +03:00
|
|
|
|
2020-06-12 13:15:16 +03:00
|
|
|
/**
|
|
|
|
|
* Instantiates a new component.
|
|
|
|
|
*
|
|
|
|
|
* @inheritdoc
|
|
|
|
|
*/
|
|
|
|
|
constructor(props: Props) {
|
|
|
|
|
super(props);
|
|
|
|
|
|
|
|
|
|
this._onSetVideoLink = this._onSetVideoLink.bind(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_onSetVideoLink: string => boolean;
|
|
|
|
|
}
|