/** @jsxImportSource @emotion/react */ import { css } from '@emotion/react'; import { Fragment } from 'react'; import { RcIconClose } from '../icons'; export interface RcNotifierProps { onClose: () => void; title?: string; caption?: string; message?: string; titleFontSize?: string; messageFontSize?: string; iconSize?: string; marginVert?: string; verticalGap?: string; paddingHoriz?: string; iconPadding?: string; color?: string; bgColor?: string; borderColor?: string; titleBgColor?: string; titleBorderColor?: string; heightPhone?: string; heightTablet?: string; heightDesktop?: string; noHightlightCloseButton?: boolean; cssTitle?: string; cssCaption?: string; cssMessage?: string; } export const RcNotifier: React.FC = ({ onClose, title, caption, message, titleFontSize = '16px', messageFontSize = '14px', iconSize = '20px', marginVert = '10px', verticalGap = '10px', paddingHoriz = '20px', iconPadding = '25px', color = '#484848', bgColor = '#ffffff', borderColor = '#cccccc', titleBgColor, titleBorderColor, heightPhone = '60px', heightTablet = '100px', heightDesktop = '150px', noHightlightCloseButton = true, cssTitle, cssCaption = `font-size: 14; font-weight: bold; color: #e62739;`, cssMessage, }) => { return (
{title && (
{cssTitle ? {title} : {title}}
)} {message && (
{caption && {caption}} {cssMessage ? {message} : {message}}
)}
); };