Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. import * as React from "react";
  2. import { connect } from "react-redux";
  3. import {State} from "../../../../store/reducer";
  4. import { AlertBox, AlertBoxContainerProps } from "./alertbox";
  5.  
  6. export interface AlertBoxContainerState {
  7. isAlertVisible?: boolean;
  8. }
  9.  
  10. export class AlertBoxContainer extends React.Component<AlertBoxContainerProps, AlertBoxContainerState> {
  11.  
  12.  
  13. render() {
  14. return (
  15. <AlertBox
  16. isAlertVisible={this.props.isAlertVisible}
  17. alertHeader={this.props.alertHeader}
  18. alertMessage={this.props.alertMessage}
  19. alertLeftButtonText={this.props.alertLeftButtonText}
  20. alertRightButtonText={this.props.alertRightButtonText}
  21. alertLeftButton={this.props.alertLeftButton}
  22. alertRightButton={this.props.alertRightButton}
  23. />
  24. );
  25. }
  26. }
  27.  
  28.  
  29. export default connect<any, AlertBoxContainerProps, AlertBoxContainerProps>(
  30. mapStateToProps,
  31. null
  32. )(AlertBoxContainer);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement