- Add text templates with 16 pre-made options across 4 categories (greeting, tech, fun, seasonal) - Add copy history panel tracking last 10 copied items with restore functionality - Add font comparison mode to view multiple fonts side-by-side (up to 6 fonts) - Add smooth animations: slide-down, slide-up, scale-in, fade-in, pulse, and shimmer - Add loading skeletons for better perceived performance - Add EmptyState component with contextual messages and icons - Add hover effects and transitions throughout the UI - Improve visual feedback with animated badges and shadows 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
37 lines
882 B
TypeScript
37 lines
882 B
TypeScript
import * as React from 'react';
|
|
import { cn } from '@/lib/utils/cn';
|
|
import { LucideIcon } from 'lucide-react';
|
|
|
|
export interface EmptyStateProps {
|
|
icon?: LucideIcon;
|
|
title: string;
|
|
description?: string;
|
|
action?: React.ReactNode;
|
|
className?: string;
|
|
}
|
|
|
|
export function EmptyState({
|
|
icon: Icon,
|
|
title,
|
|
description,
|
|
action,
|
|
className,
|
|
}: EmptyStateProps) {
|
|
return (
|
|
<div className={cn('flex flex-col items-center justify-center py-12 px-4 text-center', className)}>
|
|
{Icon && (
|
|
<div className="mb-4 rounded-full bg-muted p-3">
|
|
<Icon className="h-6 w-6 text-muted-foreground" />
|
|
</div>
|
|
)}
|
|
<h3 className="mb-2 text-sm font-semibold">{title}</h3>
|
|
{description && (
|
|
<p className="mb-4 text-sm text-muted-foreground max-w-sm">
|
|
{description}
|
|
</p>
|
|
)}
|
|
{action}
|
|
</div>
|
|
);
|
|
}
|