2026-02-17 15:03:34 +00:00
|
|
|
<template>
|
2026-03-19 12:44:31 +00:00
|
|
|
<BaseModal :show="show" :title="title" max-width="max-w-lg" content-class="max-h-[80vh] overflow-y-auto" @close="$emit('close')">
|
2026-02-17 15:03:34 +00:00
|
|
|
<div class="text-white/80 prose prose-invert max-w-none">
|
|
|
|
|
<p class="whitespace-pre-wrap">{{ content }}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div v-if="relatedPath" class="mt-4">
|
|
|
|
|
<router-link
|
|
|
|
|
:to="relatedPath"
|
|
|
|
|
class="inline-flex items-center gap-2 px-4 py-2 glass-button rounded-lg text-sm font-medium"
|
|
|
|
|
@click="$emit('close')"
|
|
|
|
|
>
|
|
|
|
|
Go to related page
|
|
|
|
|
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7" />
|
|
|
|
|
</svg>
|
|
|
|
|
</router-link>
|
|
|
|
|
</div>
|
2026-03-19 12:44:31 +00:00
|
|
|
</BaseModal>
|
2026-02-17 15:03:34 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2026-03-19 12:44:31 +00:00
|
|
|
import BaseModal from '@/components/BaseModal.vue'
|
2026-02-17 22:10:38 +00:00
|
|
|
|
2026-03-19 12:44:31 +00:00
|
|
|
defineProps<{
|
2026-02-17 15:03:34 +00:00
|
|
|
show: boolean
|
|
|
|
|
title: string
|
|
|
|
|
content: string
|
|
|
|
|
relatedPath?: string
|
|
|
|
|
}>()
|
|
|
|
|
|
2026-03-19 12:44:31 +00:00
|
|
|
defineEmits<{
|
2026-02-17 15:03:34 +00:00
|
|
|
close: []
|
|
|
|
|
}>()
|
|
|
|
|
</script>
|