Last active
May 22, 2018 23:57
-
-
Save zaguiini/246a050e0029eed4fd4d084954b17c28 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import classNames from 'classnames' | |
import styles from './styles.module.scss' | |
export default ({ negative = false, name, surname }) => ( | |
<div | |
className={classNames( | |
styles['name-container'], | |
negative && styles['name-negative'], | |
)} | |
> | |
<p className={styles['name-content']}>Hello, {name}.</p> | |
<p>Or should I refer to you by {surname}?</p> | |
</div> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment