import type * as React from "react"; import { cn } from "@/shared/lib/cn"; export type FileContentLineKind = "add" | "remove" | "context" | "meta"; export type FileContentLine = { kind: FileContentLineKind; text: string; }; /** Scrollable mono panel with top/bottom fade affordances for overflow. */ export function ScrollFadeMonoPanel({ children, className, fadeFromClassName = "from-muted", maxHeightClassName = "max-h-64", }: { children: React.ReactNode; className?: string; fadeFromClassName?: string; maxHeightClassName?: string; }) { return (
{children}
); } export function FileContentBlock({ footerText, footerTitle, lines, path, }: { footerText?: string; footerTitle?: string; lines: FileContentLine[]; path: string; }) { const resolvedFooterText = footerText ?? path; return (
          
        
{resolvedFooterText}
); } function FileContentLines({ lines }: { lines: FileContentLine[] }) { return lines.map((line, index) => ( )); } function FileContentLineView({ line }: { line: FileContentLine }) { return ( {line.text || " "} ); }