import { AlertCircle, RefreshCw } from "lucide-react"; import { Button } from "@/components/ui/button"; interface ErrorStateProps { message: string; onRetry?: () => void; } /** * Consistent error state for data-fetching pages. * Shows the error message with an optional retry button. */ export function ErrorState({ message, onRetry }: ErrorStateProps) { return (
{message}
{onRetry && ( )}