'use client'; import * as React from 'react'; import { Card } from '@/components/ui/Card'; import { Button } from '@/components/ui/Button'; import { Copy, Download } from 'lucide-react'; import { cn } from '@/lib/utils/cn'; export interface FontPreviewProps { text: string; isLoading?: boolean; onCopy?: () => void; onDownload?: () => void; className?: string; } export function FontPreview({ text, isLoading, onCopy, onDownload, className }: FontPreviewProps) { return (

Preview

{onCopy && ( )} {onDownload && ( )}
{isLoading ? (
Generating...
) : text ? (
              {text}
            
) : (
Your ASCII art will appear here
)}
); }