import React from "react";
import { Container, SideContent, ContentContainer, HeaderText, ContentText, } from "./styled";
export const UINotification = (props) => {
    const { header, text, leftContent, rightContent, renderContent, success, error, } = props;
    return (React.createElement(Container, null,
        leftContent && React.createElement(SideContent, null, leftContent),
        React.createElement(ContentContainer, null,
            header && (React.createElement(HeaderText, { success: success, error: error }, header)),
            text && (React.createElement(ContentText, { success: success, error: error }, text)),
            renderContent && renderContent(props)),
        rightContent && React.createElement(SideContent, { right: true }, rightContent)));
};
// for usage in non-jsx contexts
// eslint-disable-next-line react/jsx-props-no-spreading
export const createUINotification = (props) => React.createElement(UINotification, Object.assign({}, props));
//# sourceMappingURL=ui-notification.js.map