2017-05-18 21:21:33 +03:00
|
|
|
import remcalc from 'remcalc';
|
|
|
|
import Baseline from '../baseline';
|
|
|
|
import View from './view';
|
|
|
|
import React from 'react';
|
|
|
|
|
2017-05-25 17:59:58 +03:00
|
|
|
const StyledView = View.extend`
|
2017-05-18 21:21:33 +03:00
|
|
|
display: block;
|
2017-06-28 20:36:54 +03:00
|
|
|
padding: ${remcalc(12, 24, 6, 24)};
|
2017-05-18 21:21:33 +03:00
|
|
|
background-color: ${props => props.grey};
|
|
|
|
`;
|
|
|
|
|
2017-06-12 01:58:22 +03:00
|
|
|
const GroupView = ({ children, ...rest }) =>
|
2017-05-18 21:21:33 +03:00
|
|
|
<StyledView {...rest}>
|
|
|
|
{children}
|
2017-06-12 01:58:22 +03:00
|
|
|
</StyledView>;
|
2017-05-18 21:21:33 +03:00
|
|
|
|
|
|
|
export default Baseline(GroupView);
|