X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/bfaee40696c3c15556ef089e69da47bb832b08db..cb690390d4f253c3bbb9c543e243cf988f39fbb3:/services/workbench2/src/views/not-found-panel/not-found-panel.tsx diff --git a/services/workbench2/src/views/not-found-panel/not-found-panel.tsx b/services/workbench2/src/views/not-found-panel/not-found-panel.tsx index 148c331e29..f54c00c32a 100644 --- a/services/workbench2/src/views/not-found-panel/not-found-panel.tsx +++ b/services/workbench2/src/views/not-found-panel/not-found-panel.tsx @@ -3,8 +3,12 @@ // SPDX-License-Identifier: AGPL-3.0 import { RootState } from 'store/store'; +import React from 'react'; import { connect } from 'react-redux'; import { NotFoundPanelRoot, NotFoundPanelRootDataProps } from 'views/not-found-panel/not-found-panel-root'; +import { Grid } from '@material-ui/core'; +import { DefaultView } from "components/default-view/default-view"; +import { IconType } from 'components/icon/icon'; const mapStateToProps = (state: RootState): NotFoundPanelRootDataProps => { return { @@ -17,3 +21,26 @@ const mapDispatchToProps = null; export const NotFoundPanel = connect(mapStateToProps, mapDispatchToProps) (NotFoundPanelRoot) as any; + +export interface NotFoundViewDataProps { + messages: string[]; + icon?: IconType; +} + +// TODO: optionally pass in the UUID and check if the +// reason the item is not found is because +// it or a parent project is actually in the trash. +// If so, offer to untrash the item or the parent project. +export const NotFoundView = + ({ messages, icon: Icon }: NotFoundViewDataProps) => + + + ;