/** @jsx jsx */ import { css, jsx } from "@emotion/core"; import * as React from "react"; import { Motion, spring } from "react-motion"; import { IconAtom, TextAtom } from "../../atoms"; const genBannerStyle = (type: any) => { let style = "color: #FFFFFF;"; switch (type) { case "SUCCESS": style += "background: #1BCBD1;"; break; case "FAILURE": style += "background: #FF6260;"; break; case "LOADING": style += "background: #FFBA0B;"; break; default: style += "background: #1BCBD1;"; break; } return style; }; class NotificationBannerMolecule extends React.Component { public state = { isVisible: true }; public render() { const { type, children } = this.props; return ( {(value: any) => (
{typeof children === "string" ? {children} : children}
{}} onClick={this.props.onClose ? this.props.onClose : () => {}} className="overflow-hidden outline-0" >
)} ); } } export { NotificationBannerMolecule };