1
0
elk/pages/notifications.vue
2022-12-13 14:50:42 +01:00

37 lines
765 B
Vue

<script setup lang="ts">
definePageMeta({
middleware: 'auth',
})
const { t } = useI18n()
const tabs = $computed(() => [
{
name: 'all',
to: '/notifications',
display: t('tab.notifications_all'),
},
{
name: 'mention',
to: '/notifications/mention',
display: t('tab.notifications_mention'),
},
] as const)
</script>
<template>
<MainContent>
<template #title>
<NuxtLink to="/notifications" text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
<div i-ri:notification-4-line />
<span>{{ t('nav_side.notifications') }}</span>
</NuxtLink>
</template>
<template #header>
<CommonRouteTabs replace :options="tabs" />
</template>
<NuxtPage />
</MainContent>
</template>