import { Icon } from "./icon"; interface LoadingStateProps { message?: string; } export const LoadingState = ({ message = "Loading..." }: LoadingStateProps) => (
{message}
); interface ErrorStateProps { message?: string; onRetry?: () => void; } export const ErrorState = ({ message = "Failed to load", onRetry }: ErrorStateProps) => ({message}
{onRetry && ( )}{message}
);