<script setup lang="ts">
import MermaidDiagram from './MermaidDiagram.vue';
import { diagramSources } from './diagramSources';

const props = defineProps<{
  name: string;
}>();
</script>

<template>
  <MermaidDiagram :chart="diagramSources[props.name] || 'flowchart TB\\nA[Diagram not found]'" />
</template>
