UNPKG

@talend/react-components

Version:
26 lines 883 B
import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon from '../../Icon'; import theme from './RichError.module.scss'; import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; export default function RichError(props) { return /*#__PURE__*/_jsxs("div", { className: classNames(theme.wrapper, 'tc-rich-error'), children: [/*#__PURE__*/_jsx(Icon, { name: "talend-warning", className: classNames(theme.icon, 'tc-rich-error-icon') }), /*#__PURE__*/_jsxs("div", { className: classNames(theme.content, 'tc-rich-error-content'), children: [/*#__PURE__*/_jsx("h4", { children: props.title }), /*#__PURE__*/_jsx("div", { children: props.error })] })] }); } RichError.propTypes = { title: PropTypes.string, error: PropTypes.string }; //# sourceMappingURL=RichError.component.js.map