mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-14 12:59:59 +00:00
16 lines
404 B
Vue
16 lines
404 B
Vue
|
<script setup lang="ts">
|
||
|
import type { mastodon } from 'masto'
|
||
|
|
||
|
const { status } = defineProps<{
|
||
|
status: mastodon.v1.Status
|
||
|
}>()
|
||
|
|
||
|
const visibility = $computed(() => statusVisibilities.find(v => v.value === status.visibility)!)
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<CommonTooltip :content="$t(`visibility.${visibility.value}`)" placement="bottom">
|
||
|
<div :class="visibility.icon" />
|
||
|
</CommonTooltip>
|
||
|
</template>
|