1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { RootState } from 'store/store';
6 import React from 'react';
7 import { connect } from 'react-redux';
8 import { NotFoundPanelRoot, NotFoundPanelRootDataProps } from 'views/not-found-panel/not-found-panel-root';
9 import { Grid } from '@mui/material';
10 import { DefaultView } from "components/default-view/default-view";
11 import { IconType } from 'components/icon/icon';
13 const mapStateToProps = (state: RootState): NotFoundPanelRootDataProps => {
15 location: state.router.location,
16 clusterConfig: state.auth.config.clusterConfig,
20 const mapDispatchToProps = null;
22 export const NotFoundPanel = connect(mapStateToProps, mapDispatchToProps)
23 (NotFoundPanelRoot) as any;
25 export interface NotFoundViewDataProps {
30 // TODO: optionally pass in the UUID and check if the
31 // reason the item is not found is because
32 // it or a parent project is actually in the trash.
33 // If so, offer to untrash the item or the parent project.
34 export const NotFoundView =
35 ({ messages, icon: Icon }: NotFoundViewDataProps) =>
39 justifyContent="center"
40 style={{ minHeight: "100%" }}
41 data-cy="not-found-view">