bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/banner-bar/component.jsx

22 lines
499 B
React
Raw Normal View History

2019-03-16 04:07:14 +08:00
import React from 'react';
import PropTypes from 'prop-types';
import NotificationsBar from '/imports/ui/components/notifications-bar/component';
import { styles } from './styles';
2019-03-19 02:10:27 +08:00
const BannerBar = ({ text, color }) => text && (
<NotificationsBar
color={color}
>
<span className={styles.bannerTextColor}>
{text}
</span>
</NotificationsBar>
);
2019-03-16 04:07:14 +08:00
BannerBar.propTypes = {
2019-03-19 02:10:27 +08:00
text: PropTypes.string.isRequired,
color: PropTypes.string.isRequired,
2019-03-16 04:07:14 +08:00
};
export default BannerBar;