Add "ChangeEpisodeButton" and hook as player control
This commit is contained in:
23
app/components/ui/player/ChangeEpisodeButton.vue
Normal file
23
app/components/ui/player/ChangeEpisodeButton.vue
Normal file
@ -0,0 +1,23 @@
|
||||
<script setup lang="ts">
|
||||
import { Icon } from '@iconify/vue'
|
||||
|
||||
|
||||
interface Props {
|
||||
type: EpisodeChangeType;
|
||||
}
|
||||
|
||||
const props = defineProps<Props>();
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
export enum EpisodeChangeType {
|
||||
NEXT = "mage:next-fill",
|
||||
PREVIOUS = "mage:previous-fill",
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UiButton variant="borderless" size="icon">
|
||||
<Icon :icon="props.type" class="size-5" />
|
||||
</UiButton>
|
||||
</template>
|
Reference in New Issue
Block a user