// @flow
import * as React from 'react';
import { Button, Component, Text, View, Styles } from 'reactxp';
import Img from './Img';
import { colors } from '../config';
const styles = {
navigationBar: {
default: Styles.createViewStyle({
flex: 0,
alignItems: 'flex-start',
marginLeft: 12,
}),
darwin: Styles.createViewStyle({
marginTop: 24,
}),
windows: Styles.createViewStyle({
marginTop: 24,
}),
linux: Styles.createViewStyle({
marginTop: 12,
}),
},
closeBarItem: {
default: Styles.createViewStyle({
cursor: 'default',
}),
icon: Styles.createViewStyle({
flex: 0,
opacity: 0.6,
}),
},
backBarButton: {
default: Styles.createViewStyle({
borderWidth: 0,
padding: 0,
margin: 0,
cursor: 'default',
}),
content: Styles.createViewStyle({
flexDirection: 'row',
alignItems: 'center',
}),
label: Styles.createTextStyle({
fontFamily: 'Open Sans',
fontSize: 13,
fontWeight: '600',
color: colors.white60,
}),
icon: Styles.createViewStyle({
opacity: 0.6,
marginRight: 8,
}),
},
};
export default class NavigationBar extends Component {
render() {
return (
{this.props.children}
);
}
}
export class CloseBarItem extends Component {
props: {
action: () => void,
};
render() {
return (
);
}
}
export class BackBarItem extends Component {
props: {
title: string,
action: () => void,
};
render() {
return (
);
}
}