refactor: komplettsanierung
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 10s
Build & Deploy / 🧪 QA (push) Failing after 1m26s
Build & Deploy / 🏗️ Build (push) Failing after 3m19s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 2s

This commit is contained in:
2026-02-17 01:56:15 +01:00
parent 4db820214b
commit 34b35e2f17
38 changed files with 1631 additions and 329 deletions

View File

@@ -0,0 +1,39 @@
"use client";
import React from "react";
import { Mermaid } from "./Mermaid";
interface PieSlice {
label: string;
value: number;
}
interface DiagramPieProps {
data: PieSlice[];
title?: string;
caption?: string;
id?: string;
showShare?: boolean;
}
export const DiagramPie: React.FC<DiagramPieProps> = ({
data,
title,
caption,
id,
showShare = true,
}) => {
const pieGraph = `pie
${data.map((slice) => ` "${slice.label}" : ${slice.value}`).join("\n")}`;
return (
<div className="my-12">
<Mermaid graph={pieGraph} id={id} title={title} showShare={showShare} />
{caption && (
<p className="text-center text-xs text-slate-400 mt-4 italic">
{caption}
</p>
)}
</div>
);
};