<template>
	<NcContent app-name="repod">
		<GPodder v-if="!AppConfig.repod.gpodder" />
		<Subscriptions v-if="AppConfig.repod.gpodder" />
		<router-view v-if="AppConfig.repod.gpodder" :key="$route.path" />
		<Bar />
	</NcContent>
</template>

<script>
import '@nextcloud/dialogs/dist/index.css'
import Bar from './components/Player/Bar.vue'
import GPodder from './views/GPodder.vue'
import { NcContent } from '@nextcloud/vue'
import Subscriptions from './components/Sidebar/Subscriptions.vue'

export default {
	name: 'App',
	components: {
		Bar,
		GPodder,
		NcContent,
		Subscriptions,
	},
}
</script>
