jiti-meet/react/features/base/dialog/components/web/DialogContainer.js

33 lines
810 B
JavaScript

import { ModalTransition } from '@atlaskit/modal-dialog';
import React from 'react';
import { connect } from 'react-redux';
import AbstractDialogContainer, {
abstractMapStateToProps
} from '../AbstractDialogContainer';
/**
* Implements a DialogContainer responsible for showing all dialogs. Necessary
* for supporting @atlaskit's modal animations.
*
* @extends AbstractDialogContainer
*/
class DialogContainer extends AbstractDialogContainer {
/**
* Implements React's {@link Component#render()}.
*
* @inheritdoc
* @returns {ReactElement}
*/
render() {
return (
<ModalTransition>
{ this._renderDialogContent() }
</ModalTransition>
);
}
}
export default connect(abstractMapStateToProps)(DialogContainer);