Files
chatwoot/app/javascript/widget/components/ArticleHero.vue
T

31 lines
542 B
Vue

<script>
import CategoryCard from './ArticleCategoryCard.vue';
export default {
components: { CategoryCard },
props: {
articles: {
type: Array,
default: () => [],
},
categoryPath: {
type: String,
default: '',
},
},
methods: {
onArticleClick(link) {
this.$emit('view', link);
},
},
};
</script>
<template>
<CategoryCard
:title="$t('PORTAL.POPULAR_ARTICLES')"
:articles="articles.slice(0, 6)"
@viewAll="$emit('viewAll')"
@view="onArticleClick"
/>
</template>