1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-15 15:50:06 +02:00
copilot/packages/ui-toolkit/src/header/index.js

30 lines
667 B
JavaScript
Raw Normal View History

import React from 'react';
import styled from 'styled-components';
import remcalc from 'remcalc';
const Header = styled.div`
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-between;
align-content: stretch;
align-items: stretch;
background-color: ${props => props.theme.primaryDarkBrand};
max-height: ${remcalc(53)};
min-height: ${remcalc(53)};
padding: 0 ${remcalc(18)};
line-height: ${remcalc(25)};
`;
/**
* @example ./usage.md
*/
2017-06-12 01:58:22 +03:00
export default ({ children, ...rest }) =>
<Header {...rest}>
{children}
2017-06-12 01:58:22 +03:00
</Header>;
export { default as Brand } from './brand';
export { default as Item } from './item';