File size: 787 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { Card } from '@automattic/components';
import PropTypes from 'prop-types';
import { Component } from 'react';
import supportIllustration from 'calypso/assets/images/illustrations/happiness-support.svg';
import FormattedHeader from 'calypso/components/formatted-header';

class Confirmation extends Component {
	static propTypes = {
		description: PropTypes.string.isRequired,
		title: PropTypes.string.isRequired,
	};

	render() {
		const { children, description, title } = this.props;

		return (
			<Card className="shared__confirmation">
				<img className="shared__confirmation-illustration" src={ supportIllustration } alt="" />

				<FormattedHeader headerText={ title } subHeaderText={ description } />

				{ children }
			</Card>
		);
	}
}

export default Confirmation;