import React from "react" import { SectionBadge } from "./section-badge" import { EstimatedTime } from "./estimated-time" import { ScriptViewer } from "./script-viewer" import { cn } from "@/lib/utils" interface DocHeaderProps { title: string description?: string section?: string estimatedMinutes?: number scriptPath?: string className?: string } export const DocHeader: React.FC = ({ title, description, section, estimatedMinutes, scriptPath, className, }) => { const hasBadges = section || estimatedMinutes || scriptPath return (

{title}

{hasBadges && (
{section && } {estimatedMinutes !== undefined && } {scriptPath && }
)} {description && (

{description}

)}
) }