12345678910111213141516171819202122232425 |
- // @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);
|