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

31 lines
712 B
JavaScript
Raw Normal View History

2018-10-18 08:28:08 +00:00
// @flow
import { translate } from '../../../i18n';
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 { type Props as BaseProps } from './BaseDialog';
import BaseSubmitDialog from './BaseSubmitDialog';
2019-03-19 15:42:25 +00:00
type Props = BaseProps & {
2018-10-18 08:28:08 +00:00
t: Function
}
/**
* Implements a submit dialog component that can have free content.
*/
class CustomSubmitDialog extends BaseSubmitDialog<Props, *> {
/**
* Implements {@code BaseSubmitDialog._renderSubmittable}.
*
* @inheritdoc
*/
_renderSubmittable() {
return this.props.children;
}
}
export default translate(
connect(_abstractMapStateToProps)(CustomSubmitDialog));