import { Meta , Story } from '@storybook/react' ; import { ErrorToastNotification } from './ErrorToastNotification' ; import React from 'react' ; interface IProps { retryButtonText : string ; retryButtonHandler ? : ( event : React . MouseEvent < HTMLDivElement > ) => void ; } const Template = ( args ) => < ErrorToastNotification { ... args } / > ; export const ErrorNotificationView = Template . bind ( { } ) ; ErrorNotificationView . args = { retryButtonText : 'Retry' , retryButtonHandler : ( ) => alert ( 'Retry Button Clicked' ) } ; export default { title : 'Components/Interface/ErrorToastNotification' , component : ErrorToastNotification } as Meta ;