import React from 'react'; import PropTypes from 'prop-types'; import { AlignItems, BackgroundColor, BlockSize, IconColor, JustifyContent, TextAlign, TextVariant, FlexDirection, Display, Severity, } from '../../../../helpers/constants/design-system'; import { AvatarIcon, IconSize, Text, Box, BannerAlert, } from '../../../component-library'; const InstallError = ({ title, error, description, iconName }) => { return ( {iconName && ( )} {title} {description && {description}} {error && ( {error} )} ); }; InstallError.propTypes = { title: PropTypes.node.isRequired, error: PropTypes.string, description: PropTypes.string, iconName: PropTypes.string, }; export default InstallError;