/* eslint-disable camelcase */
// @flow

import * as React from 'react'
import {TabNavigator} from '../components/tabbed-view'
import {TabBarIcon} from '../components/tabbar-icon'

import {newsImages} from '../../../images/news-images'
import NewsContainer from './news-container'
import {NoonNewsView} from './noon-news-bulletin'

export default TabNavigator(
	{
		NoonNews: {
			screen: ({navigation}) => (
				<NoonNewsView
					name="Noon News Bulletin"
					navigation={navigation}
					url="https://apps.carleton.edu/campact/nnb/show.php3"
				/>
			),
			navigationOptions: {
				tabBarLabel: 'NNB',
				tabBarIcon: TabBarIcon('paper'),
			},
		},
	},
	{
		CarletonNewsView: {
			screen: ({navigation}) => (
				<NewsContainer
					mode="rss"
					name="Carleton"
					navigation={navigation}
					thumbnail={newsImages.carleton}
					url="https://apps.carleton.edu/media_relations/feeds/blogs/news"
				/>
			),
			navigationOptions: {
				tabBarLabel: 'Carleton',
				tabBarIcon: TabBarIcon('school'),
			},
		},

		CarletonianNewsView: {
			screen: ({navigation}) => (
				<NewsContainer
					embedFeaturedImage={true}
					mode="rss"
					name="The Carletonian"
					navigation={navigation}
					thumbnail={newsImages.carletonian}
					url="https://apps.carleton.edu/carletonian/feeds/blogs/tonian"
				/>
			),
			navigationOptions: {
				tabBarLabel: 'Carletonian',
				tabBarIcon: TabBarIcon('paper'),
			},
		},

		KrlxNewsView: {
			screen: ({navigation}) => (
				<NewsContainer
					mode="wp-json"
					name="KRLX"
					navigation={navigation}
					query={{per_page: 10, _embed: true}}
					thumbnail={newsImages.krlx}
					url="https://www.krlx.org/wp-json/wp/v2/posts/"
				/>
			),
			navigationOptions: {
				tabBarLabel: 'KRLX',
				tabBarIcon: TabBarIcon('radio'),
			},
		},
	},
	{
		navigationOptions: {
			title: 'News',
		},
	},
)

@@ -361,306 +361,8 @@
 %0A%09%7B%0A
-%09%09NoonNews: %7B%0A%09%09%09screen: (%7Bnavigation%7D) =%3E (%0A%09%09%09%09%3CNoonNewsView%0A%09%09%09%09%09name=%22Noon News Bulletin%22%0A%09%09%09%09%09navigation=%7Bnavigation%7D%0A%09%09%09%09%09url=%22https://apps.carleton.edu/campact/nnb/show.php3%22%0A%09%09%09%09/%3E%0A%09%09%09),%0A%09%09%09navigationOptions: %7B%0A%09%09%09%09tabBarLabel: 'NNB',%0A%09%09%09%09tabBarIcon: TabBarIcon('paper'),%0A%09%09%09%7D,%0A%09%09%7D,%0A%09%7D,%0A%09%7B%0A
 %09%09Ca
@@ -1123,16 +1123,308 @@
 ,%0A%09%09%7D,%0A%0A
+%09%09NoonNews: %7B%0A%09%09%09screen: (%7Bnavigation%7D) =%3E (%0A%09%09%09%09%3CNoonNewsView%0A%09%09%09%09%09name=%22Noon News Bulletin%22%0A%09%09%09%09%09navigation=%7Bnavigation%7D%0A%09%09%09%09%09url=%22https://apps.carleton.edu/campact/nnb/show.php3%22%0A%09%09%09%09/%3E%0A%09%09%09),%0A%09%09%09navigationOptions: %7B%0A%09%09%09%09tabBarLabel: 'NNB',%0A%09%09%09%09tabBarIcon: TabBarIcon('paper'),%0A%09%09%09%7D,%0A%09%09%7D,%0A%0A
 %09%09KrlxNe

Add rest of news sources back