blob: 825cbf9190ea1876f917be8903782dec330a7d4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
import * as React from 'react';
import { Component, View } from 'reactxp';
import styled from 'styled-components';
import { colors } from '../../config.json';
import HeaderBar from './HeaderBar';
import styles from './LayoutStyles';
export class Header extends Component<HeaderBar['props']> {
public static defaultProps = HeaderBar.defaultProps;
public render() {
return (
<View style={[styles.header, this.props.style]}>
<HeaderBar barStyle={this.props.barStyle}>{this.props.children}</HeaderBar>
</View>
);
}
}
export const Container = styled.div({
display: 'flex',
flexDirection: 'column',
flex: 1,
backgroundColor: colors.blue,
overflow: 'hidden',
});
export const Layout = styled.div({
display: 'flex',
flexDirection: 'column',
flex: 1,
height: '100vh',
});
|