1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import React from "react";
6 import { WarningIcon } from "components/icon/icon";
7 import { StyleRulesCallback, DialogContentText, WithStyles, withStyles } from "@material-ui/core";
8 import { ArvadosTheme } from 'common/custom-theme';
10 type CssRules = 'container' | 'text';
12 const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
22 interface WarningCollectionProps {
26 export const WarningCollection = withStyles(styles)(({ classes, text }: WarningCollectionProps & WithStyles<CssRules>) =>
27 <span className={classes.container}>
29 <DialogContentText className={classes.text}>{text}</DialogContentText>