import React from 'react'; import { client as settingsPath, CLIENT_TABS } from 'App/routes'; import { Icon } from 'UI'; import { LoadingOutlined } from '@ant-design/icons'; import { useHistory } from 'react-router-dom'; import { Button } from 'antd'; export function LoadingFetch({ provider }: { provider: string }) { return (
Fetching logs from {provider}...
); } export function FailedFetch({ provider, onRetry, }: { provider: string; onRetry: () => void; }) { const history = useHistory(); const intPath = settingsPath(CLIENT_TABS.INTEGRATIONS); return (
Failed to fetch logs from {provider}.
); }