import { cloneElement, PureComponent } from 'react';
import classNames from 'classnames';
export class SoftGlobalToastListItem extends PureComponent {
    constructor(props) {
        super(props);
    }
    render() {
        let { children, isDismissed } = this.props;
        if (!children) {
            return null;
        }
        const classes = classNames('softGlobalToastListItem', children.props.className, {
            'softGlobalToastListItem-isDismissed': isDismissed,
        });
        return cloneElement(children, {
            ...children.props,
            ...{ className: classes },
        });
    }
}
//# sourceMappingURL=SoftGlobalToastListItem.js.map