<template>
	<NcAppContent :class="{ padding: episode }">
		<slot />
	</NcAppContent>
</template>

<script>
import { NcAppContent } from '@nextcloud/vue'
import { mapState } from 'pinia'
import { usePlayer } from '../../store/player.js'

export default {
	name: 'AppContent',
	components: {
		NcAppContent,
	},
	computed: {
		...mapState(usePlayer, ['episode']),
	},
}
</script>

<style scoped>
.padding {
	padding-bottom: 6rem;
}
</style>
