2017-06-06 22:08:08 +03:00
|
|
|
import React from 'react';
|
|
|
|
import styled from 'styled-components';
|
|
|
|
import remcalc from 'remcalc';
|
|
|
|
|
|
|
|
import P from '../text/p';
|
|
|
|
import typography from '../typography';
|
|
|
|
|
|
|
|
const Text = P.extend`
|
|
|
|
${typography.semibold};
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
color: ${props => props.theme.white};
|
|
|
|
margin: 0;
|
|
|
|
`;
|
|
|
|
|
|
|
|
const Box = styled.div`
|
|
|
|
flex: 0 1 auto;
|
|
|
|
align-self: auto;
|
|
|
|
order: 0;
|
|
|
|
|
|
|
|
padding: ${remcalc(15)} 0;
|
|
|
|
width: ${remcalc(100)};
|
|
|
|
max-width: ${remcalc(100)};
|
|
|
|
`;
|
|
|
|
|
2017-06-12 01:58:22 +03:00
|
|
|
export default ({ children, ...rest }) =>
|
2017-06-07 12:32:06 +03:00
|
|
|
<Box {...rest}>
|
2017-06-06 22:08:08 +03:00
|
|
|
<Text>
|
|
|
|
{children}
|
|
|
|
</Text>
|
2017-06-12 01:58:22 +03:00
|
|
|
</Box>;
|