import { Meta , Story } from '@storybook/react' ; import { Notification , NOTIFICATION_TYPE } from './Notification' ; import React from 'react' ; interface IProps { id ? : string ; show : boolean ; type ? : NOTIFICATION_TYPE ; callback ? : ( event : React . MouseEvent < HTMLDivElement > ) => void ; className ? : string ; } const Template = ( args ) => < Notification { ... args } / > ; export const NotificationView = Template . bind ( { } ) ; NotificationView . args = { id : 'string' , show : true , type : NOTIFICATION_TYPE . SUCCESS , className : 'Notification-Class' } ; export default { title : 'Components/Interface/Notification' , component : Notification } as Meta ;