'use client' import React from 'react' import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { Badge } from "@/components/ui/badge" import { Separator } from "@/components/ui/separator" import CustomSyntaxHighlighter from "@/components/SyntaxHighlighter" import { ExternalLink } from "lucide-react" interface Source { name: string url: string description: string } interface JSDocItem { tag: string syntax: string example: string description: string sources?: Source[] } interface JSDocSection { title: string description: string items: JSDocItem[] } interface ContentProps { activeSection: string jsdocData: Record } export default function Content({ activeSection, jsdocData }: ContentProps) { const currentSection = jsdocData[activeSection] return (
{/* Kitchen Sink Example */} {activeSection === 'kitchen-sink' && ( Kitchen Sink Example A comprehensive example showcasing multiple JSDoc features in one code block )} {/* Section Header */}

{currentSection?.title || "Section"}

{currentSection?.description || "Documentation section"}

{/* Content Cards */}
{currentSection?.items.map((item, index) => (
{item.tag}
{item.description}
{/* Syntax */}

Syntax:

{item.syntax}
{/* Example with Syntax Highlighting */}

Example:

{/* Source Links */} {item.sources && item.sources.length > 0 && ( <>

Sources & References:

{item.sources.map((source, sourceIndex) => (
{source.name}

{source.description}

))}
)}
)) || []}
) }