Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react';
- import PropTypes from 'prop-types';
- import styles from './styles.scss';
- export default function Banner({ title, message }) {
- return (
- <div className={styles.banner}>
- {title && <h3 className={styles.title}>{title}</h3>}
- <p className={styles.message}>{message}</p>
- </div>
- );
- }
Add Comment
Please, Sign In to add comment