joyent-portal/ui/src/components/metric/header.js

47 lines
828 B
JavaScript
Raw Normal View History

2017-02-15 03:19:26 +02:00
const composers = require('../../shared/composers');
const constants = require('../../shared/constants');
const fns = require('../../shared/functions');
const React = require('react');
const Styled = require('styled-components');
const {
colors
} = constants;
const {
remcalc
} = fns;
2017-02-15 03:19:26 +02:00
const {
Baseline
} = composers;
const {
default: styled
} = Styled;
const StyledHeader = styled.div`
position: relative;
display: flex;
justify-content: flex-end;
box-sizing: border-box;
padding: 0;
width: 100%;
2017-02-02 21:05:45 +02:00
background-color: ${colors.base.primaryDark};
border: solid ${remcalc(1)} ${colors.base.primaryDark};
`;
const Header = (props) => (
<StyledHeader {...props}>
{props.children}
</StyledHeader>
);
Header.propTypes = {
children: React.PropTypes.node
};
2017-02-15 03:19:26 +02:00
module.exports = Baseline(
Header
);