jiti-meet/react/features/base/dialog/components/native/CustomDialog.js

25 lines
541 B
JavaScript
Raw Normal View History

2018-10-18 08:28:08 +00:00
// @flow
2019-03-21 16:38:29 +00:00
import { connect } from '../../../redux';
2018-10-18 08:28:08 +00:00
import { _abstractMapStateToProps } from '../../functions';
2018-10-18 08:28:08 +00:00
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;
}
}
export default connect(_abstractMapStateToProps)(CustomDialog);