mirror of
https://github.com/element-plus/element-plus.git
synced 2024-12-21 02:50:11 +08:00
14 lines
260 B
TypeScript
14 lines
260 B
TypeScript
|
import { computed } from 'vue'
|
||
|
import { useData } from 'vitepress'
|
||
|
|
||
|
import { useLang } from './lang'
|
||
|
|
||
|
export const useNav = () => {
|
||
|
const { theme } = useData()
|
||
|
const lang = useLang()
|
||
|
|
||
|
return computed(() => {
|
||
|
return theme.value.nav[lang.value]
|
||
|
})
|
||
|
}
|