// @flow

import * as React from 'react'

import {TabNavigator} from '../components/tabbed-view'
import {TabBarIcon} from '../components/tabbar-icon'

import {OtherModesView} from './other-modes'
import {ConnectedXyzBusView, ConnectedXyzBusList} from './xyz'

export {ConnectedXyzBusView} from './xyz/view'
export {OtherModesDetailView} from './other-modes'
export {BusMap} from './bus'

export default TabNavigator(
	{
		ExpressLineBusView: {
			screen: ({navigation}) => (
				<ConnectedXyzBusView navigation={navigation} routeName="Express Bus" />
			),
			navigationOptions: {
				tabBarLabel: 'Express Bus',
				tabBarIcon: TabBarIcon('subway'),
			},
		},

		CarlsGoBusView: {
			screen: ({navigation}) => (
				<ConnectedXyzBusView navigation={navigation} routeName={/Carls-Go/} />
			),
			navigationOptions: {
				tabBarLabel: 'CarlsGO',
				tabBarIcon: TabBarIcon('car'),
			},
		},

		BlueLineBusView: {
			screen: ({navigation}) => (
				<ConnectedXyzBusView navigation={navigation} routeName="Blue Line" />
			),
			navigationOptions: {
				tabBarLabel: 'Blue Line',
				tabBarIcon: TabBarIcon('bus'),
			},
		},

		TransportationOtherBusView: {
			screen: ConnectedXyzBusList,
		},

		TransportationOtherModesListView: {
			screen: OtherModesView,
		},
	},
	{
		navigationOptions: {
			title: 'Transportation',
		},
	},
)

@@ -660,239 +660,8 @@
 %7D,%0A%0A
-%09%09CarlsGoBusView: %7B%0A%09%09%09screen: (%7Bnavigation%7D) =%3E (%0A%09%09%09%09%3CConnectedXyzBusView navigation=%7Bnavigation%7D routeName=%7B/Carls-Go/%7D /%3E%0A%09%09%09),%0A%09%09%09navigationOptions: %7B%0A%09%09%09%09tabBarLabel: 'CarlsGO',%0A%09%09%09%09tabBarIcon: TabBarIcon('car'),%0A%09%09%09%7D,%0A%09%09%7D,%0A%0A
 %09%09Bl

remove Carls-GO tab from navigation