<template>
  <ReportDocumentReader
    :open="open"
    :content="output?.content_md || ''"
    :title="output?.title || '文档预览'"
    @close="$emit('close')"
  />
</template>

<script setup lang="ts">
import ReportDocumentReader from '@/views/research/ReportDocumentReader.vue'
import type { NotebookOutput } from '@/types/notebook'

defineProps<{
  open: boolean
  output: NotebookOutput | null
}>()

defineEmits<{
  close: []
}>()
</script>
