Add "ChangeEpisodeButton" and hook as player control

This commit is contained in:
2025-08-18 00:25:20 +05:00
parent ece7c650f6
commit 52db5633c8
5 changed files with 91 additions and 14 deletions

View 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>