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