yoda-common-boilerplate
Version:
Repository of all JCP reusable atoms, molecules and organisms
21 lines (18 loc) • 460 B
JSX
import { Image } from 'atoms';
import React, { Component } from 'react';
import styles from './DepartmentCard.css';
class DepartmentCard extends Component {
render() {
return (
<div className={styles.departmentCard}>
<div className={styles.imgBlock}>
<Image src={this.props.image} alt="" />
</div>
<div>
<p>{this.props.title}</p>
</div>
</div>
);
}
}
export default DepartmentCard;