import React, { useEffect } from 'react'; import { useTheme2 } from '@grafana/ui'; import Page from 'app/core/components/Page/Page'; import { UpgradeBox, UpgradeContent } from 'app/core/components/Upgrade/UpgradeBox'; import { connector, Props } from './DataSourceInsights'; export const DataSourceUpgradePage = ({ navModel, dataSourceUid, loadDataSource, loadDataSourceMeta, }: Omit) => { const theme = useTheme2(); useEffect(() => { loadDataSource(dataSourceUid).then(loadDataSourceMeta); }, [dataSourceUid, loadDataSource, loadDataSourceMeta]); return ( ); }; export default connector(DataSourceUpgradePage);