'use client'; import * as React from 'react'; import { Card } from '@/components/ui/Card'; import { Button } from '@/components/ui/Button'; import { Copy, Download, Share2 } from 'lucide-react'; import { cn } from '@/lib/utils/cn'; export interface FontPreviewProps { text: string; font?: string; isLoading?: boolean; onCopy?: () => void; onDownload?: () => void; onShare?: () => void; className?: string; } export function FontPreview({ text, font, isLoading, onCopy, onDownload, onShare, className }: FontPreviewProps) { const lineCount = text ? text.split('\n').length : 0; const charCount = text ? text.length : 0; return (

Preview

{font && ( {font} )}
{onCopy && ( )} {onShare && ( )} {onDownload && ( )}
{!isLoading && text && (
{lineCount} lines {charCount} chars
)}
{isLoading ? (
Generating...
) : text ? (
              {text}
            
) : (
Your ASCII art will appear here
)}
); }