(node: React.ReactNode)
| 65 | const yAxisProps = useYAxisProps({}); |
| 66 | |
| 67 | const wrapper = (node: React.ReactNode) => ( |
| 68 | <Widget className="w-full"> |
| 69 | <WidgetHead className="flex items-center justify-between"> |
| 70 | <span className="title">Usage</span> |
| 71 | </WidgetHead> |
| 72 | <WidgetBody>{node}</WidgetBody> |
| 73 | </Widget> |
| 74 | ); |
| 75 | |
| 76 | if (usageQuery.isLoading) { |
| 77 | return wrapper( |