<script setup lang="ts">
import ConfigViewTemplate from '../../ConfigViewTemplate.vue'
import Answer from './Answer.vue'

const role = inject('role') as string

defineProps<{ node: any }>()
</script>

<template>
  <ConfigViewTemplate :node="node">
    <div>
      <el-form-item :label="role === 'student' ? '我的答案' : '学生答案'" style="margin-bottom: 0"></el-form-item>
      <Answer :data="node.data?.student"></Answer>
    </div>
    <div>
      <el-form-item label="正确答案" style="margin-bottom: 0"></el-form-item>
      <Answer :data="node.data?.teacher"></Answer>
    </div>
  </ConfigViewTemplate>
</template>
