import React from 'react'; import { BaseColorTokens } from '../../../foundation/Colors'; import { TypographyTokens } from '../../../foundation/Typography'; import { CloseButton } from '../../CloseButton'; import { Typography } from '../../Typography'; import { NotificationBox, TitleBox } from '../Notifications.styled'; export type NotificationContentProps = { closeToast?: () => void; colorToken: BaseColorTokens; content: string; contentTypographyToken: TypographyTokens; onCloseNotification?: () => void; title: string; titleTypographyToken: TypographyTokens; }; export const NotificationContent: React.FunctionComponent = ({ onCloseNotification, title, colorToken, closeToast, contentTypographyToken, titleTypographyToken, content, }) => { return ( {title} { closeToast && closeToast(); onCloseNotification && onCloseNotification(); }} /> {content} ); };