Extract Watch on YouTube button to a component

This commit is contained in:
thecashewtrader
2022-11-02 22:53:12 +05:30
committed by Kavin
parent f0fdd84bae
commit 662eb32e3e
4 changed files with 36 additions and 53 deletions

View File

@@ -0,0 +1,20 @@
<script>
export default {
props: {
link: String,
},
};
</script>
<template>
<!-- For large screens -->
<a :href="link" class="btn lt-lg:hidden">
<i18n-t keypath="player.watch_on" tag="strong">
<font-awesome-icon class="mx-1.5" :icon="['fab', 'youtube']" />
</i18n-t>
</a>
<!-- For small screens -->
<a :href="link" class="btn lg:hidden">
<font-awesome-icon class="mx-1.5" :icon="['fab', 'youtube']" />
</a>
</template>