joyent-portal/ui/src/components/add-metric/description.js

36 lines
619 B
JavaScript
Raw Normal View History

const React = require('react');
const Styled = require('styled-components');
const constants = require('../../shared/constants');
2017-02-15 03:19:26 +02:00
const composers = require('../../shared/composers');
const {
colors
} = constants;
2017-02-15 03:19:26 +02:00
const {
Baseline
} = composers;
const {
default: styled
} = Styled;
const StyledDescription = styled.p`
margin: 0;
color: ${colors.base.secondary};
`;
const Description = (props) => (
<StyledDescription name='add-metric-description'>
{props.children}
</StyledDescription>
);
Description.propTypes = {
children: React.PropTypes.node
};
2017-02-15 03:19:26 +02:00
module.exports = Baseline(
Description
);