/**
 * Displays default or passed text for empty value;
 *
 * @author: Denis Makarov
 * @date: 2020-10-07
 */

import * as React from 'react';

import * as styles from './emptyText.m.css';

interface IProps {
    text: string;
}

export class EmptyText extends React.Component<IProps> {
    override render () {
        return (
            <span className={styles.emptyText}>
                {this.props.text}
            </span>
        );
    }
}
