"use client"; import React from "react"; import { Toaster } from "react-hot-toast"; import { showToast } from "@calcom/ui/components/toast"; interface TypographyStyle { name: string; className: string; specs: { fontFamily: string; fontSize: string; lineHeight: string; weight: string; }; category?: string; } interface TypographySection { title: string; description?: string; styles: TypographyStyle[]; } interface TypographyTableProps { sections: TypographySection[]; } interface CopyMenuProps { style: TypographyStyle; onCopy: (format: string) => void; } const CopyMenu: React.FC = ({ style, onCopy }) => { return (
); }; export const TypographyTable: React.FC = ({ sections }) => { const handleCopy = async (value: string) => { try { await navigator.clipboard.writeText(value); showToast(`Copied to clipboard`, "success"); } catch (error) { console.error("Failed to copy:", error); showToast("Failed to copy", "error"); } }; return ( <>
{sections.map((section, sectionIndex) => (

{section.title}

{section.description &&

{section.description}

}
{section.styles.map((style, styleIndex) => (

{style.name}

{style.className}

The quick brown fox jumps over the lazy dog

Font: {style.specs.fontFamily}

Size: {style.specs.fontSize}px

Line Height: {style.specs.lineHeight}

Weight: {style.specs.weight}

))}
))}
); };