2017-01-11 12:14:56 +02:00
|
|
|
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');
|
2017-01-11 12:14:56 +02:00
|
|
|
|
|
|
|
const {
|
|
|
|
colors
|
|
|
|
} = constants;
|
|
|
|
|
2017-02-15 03:19:26 +02:00
|
|
|
const {
|
|
|
|
Baseline
|
|
|
|
} = composers;
|
|
|
|
|
2017-01-11 12:14:56 +02:00
|
|
|
const {
|
|
|
|
default: styled
|
|
|
|
} = Styled;
|
|
|
|
|
|
|
|
const StyledDescription = styled.p`
|
|
|
|
margin: 0;
|
2017-02-02 17:48:45 +02:00
|
|
|
color: ${colors.base.secondary};
|
2017-01-11 12:14:56 +02:00
|
|
|
`;
|
|
|
|
|
|
|
|
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
|
|
|
|
);
|