import React, { useEffect } from 'react';
import { useTheme2 } from '@grafana/ui';
import Page from 'app/core/components/Page/Page';
import { UpgradeBox, UpgradeContent, UpgradeContentProps } from 'app/core/components/Upgrade/UpgradeBox';
import { connector, Props } from './AccessControlDataSourcePermissions';
export const UpgradePage = ({ navModel, loadDataSource, loadDataSourceMeta, resourceId }: Props) => {
useEffect(() => {
loadDataSource(resourceId as any).then(loadDataSourceMeta);
}, [resourceId, loadDataSource, loadDataSourceMeta]);
return (
);
};
export interface PermissionsUpgradeContentProps {
action?: UpgradeContentProps['action'];
}
export const PermissionsUpgradeContent = ({ action }: PermissionsUpgradeContentProps) => {
const theme = useTheme2();
return (
);
};
export default connector(UpgradePage);