import { AlertCircle, SearchX } from 'lucide-react';
import { Button } from './button';
import { Skeleton } from './skeleton';
export function LoadingState({ label }: { label: string }) {
return (
{label}
{[0, 1, 2, 3].map((i) => (
))}
);
}
export function EmptyState({
title,
description,
action,
}: {
title: string;
description?: string;
action?: React.ReactNode;
}) {
return (
{title}
{description && (
{description}
)}
{action &&
{action}
}
);
}
export function ErrorState({
title,
description,
retryLabel,
onRetry,
}: {
title: string;
description: string;
retryLabel: string;
onRetry: () => void;
}) {
return (
{title}
{description}
);
}