// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import React from 'react'; import { StyleRulesCallback, WithStyles, withStyles, Card, CardContent, Grid, Table, TableHead, TableRow, TableCell, TableBody, Tooltip, IconButton, Checkbox } from '@material-ui/core'; import { ArvadosTheme } from 'common/custom-theme'; import { MoreOptionsIcon } from 'components/icon/icon'; import { KeepServiceResource } from 'models/keep-services'; type CssRules = 'root' | 'tableRow'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ root: { width: '100%', overflow: 'auto' }, tableRow: { '& td, th': { whiteSpace: 'nowrap' } } }); export interface KeepServicePanelRootActionProps { openRowOptions: (event: React.MouseEvent, keepService: KeepServiceResource) => void; } export interface KeepServicePanelRootDataProps { keepServices: KeepServiceResource[]; hasKeepSerices: boolean; } type KeepServicePanelRootProps = KeepServicePanelRootActionProps & KeepServicePanelRootDataProps & WithStyles; export const KeepServicePanelRoot = withStyles(styles)( ({ classes, hasKeepSerices, keepServices, openRowOptions }: KeepServicePanelRootProps) => {hasKeepSerices && UUID Read only Service host Service port Service SSL flag Service type {keepServices.map((keepService, index) => {keepService.uuid} {keepService.serviceHost} {keepService.servicePort} {keepService.serviceType} openRowOptions(event, keepService)}> )}
}
);