repod/src/components/Atoms/AppNavigation.vue

34 lines
576 B
Vue
Raw Normal View History

<template>
2024-01-17 21:38:47 +00:00
<NcAppNavigation :class="episode ? 'padding' : ''">
<slot />
<template #list>
<slot name="list" />
</template>
<template #footer>
<slot name="footer" />
</template>
</NcAppNavigation>
</template>
<script>
import { NcAppNavigation } from '@nextcloud/vue'
import { mapState } from 'pinia'
import { usePlayer } from '../../store/player.js'
export default {
name: 'AppNavigation',
components: {
NcAppNavigation,
},
computed: {
...mapState(usePlayer, ['episode']),
},
}
</script>
<style scoped>
.padding {
padding-bottom: 6rem;
}
</style>