"use client"; import React from "react"; import { Mermaid } from "./Mermaid"; interface TimelineEvent { year: string; title: string; } interface DiagramTimelineProps { events: TimelineEvent[]; title?: string; caption?: string; id?: string; showShare?: boolean; fontSize?: string; } export const DiagramTimeline: React.FC = ({ events, title, caption, id, showShare = true, fontSize = "16px", }) => { const timelineGraph = `timeline title ${title || "Timeline"} ${(events || []).map((event) => ` ${event.year} : ${event.title}`).join("\n")}`; return (
{caption && (
{caption}
)}
); };