// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import * as React from 'react'; import Typography from '@material-ui/core/Typography'; import { StyleRulesCallback, WithStyles, withStyles } from '@material-ui/core/styles'; import { ArvadosTheme } from 'src/common/custom-theme'; interface AttributeDataProps { label: string; } type AttributeProps = AttributeDataProps & WithStyles; class Attribute extends React.Component { render() { const { label, children, classes } = this.props; return {label} {children} ; } } type CssRules = 'attribute' | 'label' | 'value'; const styles: StyleRulesCallback = (theme: ArvadosTheme) => ({ attribute: { display: 'flex', alignItems: 'center', marginBottom: theme.spacing.unit }, label: { color: theme.palette.grey["500"], width: '40%' }, value: { display: 'flex', alignItems: 'center' } }); export default withStyles(styles)(Attribute);