mirror of
https://github.com/elk-zone/elk.git
synced 2024-12-21 03:43:11 +03:00
16 lines
566 B
Vue
16 lines
566 B
Vue
|
<script setup lang="ts">
|
||
|
import { STORAGE_KEY_LAST_ACCESSED_EXPLORE_ROUTE } from '~/constants'
|
||
|
|
||
|
defineProps<{
|
||
|
activeClass: string
|
||
|
}>()
|
||
|
|
||
|
const lastAccessedExploreRoute = useLocalStorage(STORAGE_KEY_LAST_ACCESSED_EXPLORE_ROUTE, '')
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<NuxtLink :to="`/${currentServer}/explore/${lastAccessedExploreRoute}`" :aria-label="$t('nav.explore')" :active-class="activeClass" flex flex-row items-center place-content-center h-full flex-1 class="coarse-pointer:select-none" @click="$scrollToTop">
|
||
|
<div i-ri:compass-3-line />
|
||
|
</NuxtLink>
|
||
|
</template>
|