'use client'; import React from 'react'; import { EmptyStateProps, SkeletonRowProps } from '../lib/types'; // ─── Empty State ─────────────────────────────────────────────────────────────── export const EmptyState: React.FC = ({ message = 'No plagiarism checks found.', }) => (
{message}
); // ─── Skeleton Row ────────────────────────────────────────────────────────────── const SkeletonCell: React.FC<{ width?: string }> = ({ width = 'w-24' }) => (
); export const SkeletonRow: React.FC = ({ columns }) => { const widths = ['w-32', 'w-40', 'w-20', 'w-24', 'w-20', 'w-16']; return ( {Array.from({ length: columns }).map((_, i) => ( ))} ); }; // ─── Error State ─────────────────────────────────────────────────────────────── interface ErrorStateProps { message: string | null | undefined; onRetry: () => void; } export const ErrorState: React.FC = ({ message, onRetry }) => (
{message}
);