2023-01-10 07:14:22 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
import type { mastodon } from 'masto'
|
|
|
|
|
|
|
|
const { status } = defineProps<{
|
|
|
|
status: mastodon.v1.Status
|
|
|
|
}>()
|
|
|
|
|
2024-02-21 15:20:08 +00:00
|
|
|
const visibility = computed(() => statusVisibilities.find(v => v.value === status.visibility)!)
|
2023-01-10 07:14:22 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<CommonTooltip :content="$t(`visibility.${visibility.value}`)" placement="bottom">
|
2023-08-12 10:26:37 +00:00
|
|
|
<div :class="visibility.icon" :aria-label="$t(`visibility.${visibility.value}`)" />
|
2023-01-10 07:14:22 +00:00
|
|
|
</CommonTooltip>
|
|
|
|
</template>
|