1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import * as React from 'react';
6 import { StyleRulesCallback, WithStyles, withStyles } from '@material-ui/core/styles';
7 import { DefaultViewDataProps, DefaultView } from '~/components/default-view/default-view';
9 type CssRules = 'classRoot' | 'classIcon' | 'classMessage';
11 const styles: StyleRulesCallback<CssRules> = () => ({
17 transform: 'translate(-50%, -50%)'
27 type PanelDefaultViewProps = Pick<DefaultViewDataProps, 'icon' | 'messages'> & WithStyles<CssRules>;
29 export const PanelDefaultView = withStyles(styles)(
30 ({ classes, ...props }: PanelDefaultViewProps) =>
31 <DefaultView {...classes} {...props} />);