import { Alert, Button, Empty, Spin } from "antd"; export function QueryState(props: { loading?: boolean; error?: string | null; empty?: boolean; onRetry?: () => void; }) { if (props.loading) { return (