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';
|
|
|
|
|
|
|
|
const Text = P.extend`
|
|
|
|
text-align: center;
|
|
|
|
color: ${props => props.theme.white};
|
|
|
|
margin: 0;
|
2017-10-30 13:52:53 +02:00
|
|
|
|
|
|
|
a {
|
|
|
|
color: ${props => props.theme.white};
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2017-06-06 22:08:08 +03:00
|
|
|
`;
|
|
|
|
|
2017-10-30 13:52:53 +02:00
|
|
|
const Box = styled.section`
|
2017-06-06 22:08:08 +03:00
|
|
|
flex: 0 1 auto;
|
|
|
|
align-self: auto;
|
|
|
|
order: 0;
|
2017-10-30 13:52:53 +02:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: ${remcalc(15)};
|
|
|
|
|
|
|
|
svg {
|
|
|
|
margin-right: ${remcalc(6)};
|
|
|
|
}
|
|
|
|
|
|
|
|
&:not(:last-of-type) {
|
|
|
|
border-right: 1px solid rgba(255, 255, 255, 0.15);
|
|
|
|
}
|
2017-06-06 22:08:08 +03:00
|
|
|
|
2017-10-30 13:52:53 +02:00
|
|
|
&:first-of-type {
|
|
|
|
margin-left: auto;
|
|
|
|
}
|
2017-06-06 22:08:08 +03:00
|
|
|
`;
|
|
|
|
|
2017-08-28 22:21:08 +03:00
|
|
|
export default ({ children, ...rest }) => (
|
2017-06-07 12:32:06 +03:00
|
|
|
<Box {...rest}>
|
2017-08-28 22:21:08 +03:00
|
|
|
<Text>{children}</Text>
|
|
|
|
</Box>
|
|
|
|
);
|