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

32 lines
570 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-06-12 01:58:22 +03:00
export default ({ children, ...rest }) =>
<Box {...rest}>
<Text>
{children}
</Text>
2017-06-12 01:58:22 +03:00
</Box>;