import React from 'react'; import { connect, ConnectedProps } from 'react-redux'; import Page from '../../core/components/Page/Page'; import { GrafanaRouteComponentProps } from '../../core/navigation/types'; import { getNavModel } from '../../core/selectors/navModel'; import { StoreState } from '../../types'; import { StoredNotifications } from './StoredNotifications'; const mapStateToProps = (state: StoreState) => ({ navModel: getNavModel(state.navIndex, 'notifications'), }); const connector = connect(mapStateToProps, undefined); interface OwnProps extends GrafanaRouteComponentProps {} type Props = OwnProps & ConnectedProps; export const NotificationsPage = ({ navModel }: Props) => { return ( ); }; export default connect(mapStateToProps)(NotificationsPage);