joyent-portal/packages/ui-toolkit/src/header/item.js

31 lines
562 B
JavaScript
Raw Normal View History

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-08-28 22:21:08 +03:00
export default ({ children, ...rest }) => (
<Box {...rest}>
2017-08-28 22:21:08 +03:00
<Text>{children}</Text>
</Box>
);