@eccenca/gui-elements
Version:
Collection of low-level GUI elements like Buttons, Icons or Alerts. Also includes core styles for those elements.
20 lines (16 loc) • 402 B
JSX
import React from 'react';
import PropTypes from 'prop-types';
import Alert from './Alert';
const Warning = props => {
const { children, ...otherProps } = props;
return (
<Alert type="warning" {...otherProps}>
{children}
</Alert>
);
};
Warning.propTypes = {
children: PropTypes.node.isRequired,
};
Warning.displayName = 'Warning';
export default Warning;