import React from 'react';
import classnames from 'classnames';
import Typography from '@mui/material/Typography';
import { useStyles } from './styles';
export var ErrorMessage = function (_a) {
    var className = _a.className, message = _a.message;
    var styles = useStyles();
    if (!message) {
        return null;
    }
    return (React.createElement(Typography, { "data-reltio-id": "error-message", variant: "caption", className: classnames(styles.caption, className) }, message));
};
