on abbbcbc help sign in
bridge/src/components/old/Warning.js
23 lines 451 B history raw
1import React from 'react';
2import PropTypes from 'prop-types';
4const Warning = ({ className, children, style, measure }) => {
5 return (
6 <div className={`mb-7 p-4 bg-yellow break-word ${className}`} style={style}>
7 {children}
8 </div>
9 );
10};
12Warning.propTypes = {
13 className: PropTypes.string,
14 children: PropTypes.node,
15 style: PropTypes.object,
16};
18Warning.defaultProps = {
19 className: '',
20 style: {},
21};
23export default Warning;