2025-04-10 14:48:03 +02:00
|
|
|
<template>
|
2025-11-21 12:16:00 +01:00
|
|
|
<div class="flex flex-col gap-1">
|
|
|
|
|
<p class="text-sm leading-6 wrap-anywhere">
|
|
|
|
|
{{ contentWarning || m.sour_seemly_bird_hike() }}
|
|
|
|
|
</p>
|
|
|
|
|
<Button @click="hidden = !hidden" variant="outline" size="sm" class="col-span-2">
|
|
|
|
|
{{ hidden ? m.bald_direct_turtle_win() :
|
|
|
|
|
m.known_flaky_cockroach_dash() }} {{ characterCount > 0 ? ` (${characterCount} characters` : "" }}{{
|
|
|
|
|
attachmentCount > 0 ? `${characterCount > 0 ? " · " : " ("}${attachmentCount} file(s)` : "" }}{{ (characterCount > 0 || attachmentCount > 0) ? ")" : "" }}
|
|
|
|
|
</Button>
|
|
|
|
|
</div>
|
2025-04-10 14:48:03 +02:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2025-07-16 07:48:39 +02:00
|
|
|
import * as m from "~~/paraglide/messages.js";
|
2025-04-10 14:48:03 +02:00
|
|
|
import { Button } from "../ui/button";
|
|
|
|
|
|
2025-11-21 12:16:00 +01:00
|
|
|
const { contentWarning, characterCount, attachmentCount } = defineProps<{
|
2025-04-10 14:48:03 +02:00
|
|
|
contentWarning?: string;
|
2025-11-21 12:16:00 +01:00
|
|
|
characterCount: number;
|
|
|
|
|
attachmentCount: number;
|
2025-04-10 14:48:03 +02:00
|
|
|
}>();
|
|
|
|
|
|
2025-11-21 12:16:00 +01:00
|
|
|
const hidden = defineModel<boolean>({
|
2025-04-10 14:48:03 +02:00
|
|
|
default: true,
|
|
|
|
|
});
|
|
|
|
|
</script>
|