2023-06-16 20:37:35 +05:30
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: {
|
2023-07-27 17:16:05 +05:30
|
|
|
link: {
|
|
|
|
type: String,
|
|
|
|
required: true,
|
|
|
|
},
|
2023-06-16 20:37:35 +05:30
|
|
|
platform: {
|
|
|
|
type: String,
|
|
|
|
required: false,
|
|
|
|
default: "YouTube",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2023-07-27 17:16:05 +05:30
|
|
|
<template v-if="getPreferenceBoolean('showWatchOnYouTube', false)">
|
2023-06-16 20:37:35 +05:30
|
|
|
<!-- For large screens -->
|
2023-08-13 23:01:57 +05:30
|
|
|
<a :href="link" class="btn flex items-center lt-lg:hidden">
|
2023-06-16 20:37:35 +05:30
|
|
|
<i18n-t keypath="player.watch_on" tag="strong">{{ platform }}</i18n-t>
|
2024-03-07 01:15:31 +05:30
|
|
|
<i v-if="platform == 'YouTube'" class="i-fa6-brands:youtube mx-1.5" />
|
|
|
|
<i v-else-if="platform == 'Odysee'" class="i-fa6-brands:odysee mx-1.5" />
|
2023-06-16 20:37:35 +05:30
|
|
|
</a>
|
|
|
|
<!-- For small screens -->
|
2023-08-13 23:01:57 +05:30
|
|
|
<a :href="link" class="btn flex items-center lg:hidden">
|
2024-03-07 01:15:31 +05:30
|
|
|
<i v-if="platform == 'YouTube'" class="i-fa6-brands:youtube mx-1.5" />
|
|
|
|
<i v-else-if="platform == 'Odysee'" class="i-fa6-brands:odysee mx-1.5" />
|
2023-06-16 20:37:35 +05:30
|
|
|
</a>
|
|
|
|
</template>
|
|
|
|
</template>
|