2017-02-15 03:19:26 +02:00
|
|
|
const composers = require('../../shared/composers');
|
2017-01-13 20:08:43 +02:00
|
|
|
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;
|
|
|
|
|
2017-01-13 20:08:43 +02:00
|
|
|
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};
|
2017-01-13 20:08:43 +02:00
|
|
|
`;
|
|
|
|
|
|
|
|
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
|
|
|
|
);
|