<script lang="ts" setup>
import { inject } from "vue";
import { Module } from "../model/module.ts";

const dialogRef = inject("dialogRef") as any;
const module = dialogRef.value.data.module as Module;

console.debug(module);

</script>

<template>
  <div>
    <h2>{{ module.name }}</h2>
    <table>
      <tr>
        <td>Course:</td>
        <td>{{ module.course }}</td>
      </tr>
      <tr>
        <td>Termine:</td>
      </tr>
    </table>
  </div>
</template>
