bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/banner-bar/component.jsx
2019-03-18 15:10:27 -03:00

22 lines
499 B
JavaScript

import React from 'react';
import PropTypes from 'prop-types';
import NotificationsBar from '/imports/ui/components/notifications-bar/component';
import { styles } from './styles';
const BannerBar = ({ text, color }) => text && (
<NotificationsBar
color={color}
>
<span className={styles.bannerTextColor}>
{text}
</span>
</NotificationsBar>
);
BannerBar.propTypes = {
text: PropTypes.string.isRequired,
color: PropTypes.string.isRequired,
};
export default BannerBar;