Files
jitsi-meet/react/features/base/dialog/components/native/CustomDialog.js
Saúl Ibarra Corretgé c025c7e132 flow: tame the beast
🔥🔥🔥
2019-03-21 14:47:55 +01:00

26 lines
560 B
JavaScript

// @flow
import { connect } from 'react-redux';
import { _abstractMapStateToProps } from '../../functions';
import BaseDialog, { type Props } from './BaseDialog';
/**
* Implements a custom dialog component, where the content can freely be
* rendered.
*/
class CustomDialog extends BaseDialog<Props, *> {
/**
* Implements {@code BaseDialog._renderContent}.
*
* @inheritdoc
*/
_renderContent() {
return this.props.children;
}
}
// $FlowExpectedError
export default connect(_abstractMapStateToProps)(CustomDialog);