import React, { FC, Fragment } from 'react'; import { NotificationComponentProps, Notifications } from 'reablocks'; import { NotificationsContext } from 'reablocks'; import { Button } from 'reablocks'; export default { title: 'Components/Layers/Notification', component: Notifications }; const CustomNotification: FC = ({ message, variant, onClose }) => (
{message}
(Click me to close!)
); export const Title = () => ( {({ notify, clearAllNotifications }) => (

)}
); export const TitleAndBody = () => ( {({ notify, clearAllNotifications: clearAll }) => (



)}
); export const Variants = () => ( {({ notifySuccess, notifyError, notifyWarning, notifyInfo, clearAllNotifications: clearAll }) => (

)}
); export const FloodPrevention = () => ( {({ notify, clearAllNotifications: clearAll }) => (

)}
); export const CustomIcon = () => ( {({ notify, clearAllNotifications: clearAll }) => (

)}
); export const CustomComponent = () => ( {({ notify, clearAllNotifications }) => (

)}
); export const WithAction = () => ( {({ notify, clearAllNotifications }) => ( }) } > Show

)}
);