import { css } from '@emotion/css'; import React from 'react'; import { connect, ConnectedProps } from 'react-redux'; import { GrafanaTheme2 } from '@grafana/data'; import { useStyles2 } from '@grafana/ui'; import Page from 'app/core/components/Page/Page'; import { UpgradeBox, UpgradeContent, UpgradeContentProps } from 'app/core/components/Upgrade/UpgradeBox'; import { getNavModel } from 'app/core/selectors/navModel'; import { EnterpriseStoreState } from '../types'; function mapStateToProps(state: EnterpriseStoreState) { return { navModel: getNavModel(state.navIndex, 'reports'), }; } const connector = connect(mapStateToProps); export type Props = ConnectedProps; const ReportsUpgradePage = ({ navModel }: Props) => { const styles = useStyles2(getStyles); return (
{/*Push down the page footer*/}
); }; export const ReportUpgradeContent = ({ action }: { action?: UpgradeContentProps['action'] }) => { return ( ); }; const getStyles = (theme: GrafanaTheme2) => { return { contents: css` &.page-body { flex: 0; } `, spacer: css` flex: 1; `, box: css` ${theme.breakpoints.up('sm')} { padding: ${theme.spacing(0, 1)}; } ${theme.breakpoints.up('md')} { padding: ${theme.spacing(0, 2)}; } `, }; }; export default connector(ReportsUpgradePage);