interface LoadingProps { message?: string } export function LoadingSpinner({ message = 'Loading…' }: LoadingProps) { return (
{message}
) } interface ErrorProps { message?: string onRetry?: () => void } export function ErrorState({ message = 'Failed to load data', onRetry }: ErrorProps) { return (
Error

{message}

{onRetry && ( )}
) }