2017-02-15 03:19:26 +02:00
|
|
|
const composers = require('../../shared/composers');
|
|
|
|
const fns = require('../../shared/functions');
|
2017-01-30 19:22:01 +02:00
|
|
|
const React = require('react');
|
|
|
|
const Styled = require('styled-components');
|
|
|
|
|
|
|
|
const {
|
|
|
|
remcalc
|
|
|
|
} = fns;
|
|
|
|
|
2017-02-15 03:19:26 +02:00
|
|
|
const {
|
|
|
|
Baseline
|
|
|
|
} = composers;
|
|
|
|
|
2017-01-30 19:22:01 +02:00
|
|
|
const {
|
|
|
|
default: styled
|
|
|
|
} = Styled;
|
|
|
|
|
|
|
|
const Container = styled.div`
|
|
|
|
flex: none;
|
|
|
|
padding: ${remcalc(12)};
|
|
|
|
`;
|
|
|
|
|
|
|
|
const Details = (props) => (
|
|
|
|
<Container>
|
|
|
|
{props.children}
|
|
|
|
</Container>
|
|
|
|
);
|
|
|
|
|
|
|
|
Details.propTypes = {
|
|
|
|
children: React.PropTypes.node
|
|
|
|
};
|
|
|
|
|
2017-02-15 03:19:26 +02:00
|
|
|
module.exports = Baseline(
|
|
|
|
Details
|
|
|
|
);
|