import React from 'react' ; import { Meta , Story } from '@storybook/react' ; import { ErrorMessage } from './ErrorMessage' ; export default { title : 'Components/forms/ErrorMessage' , component : ErrorMessage } as Meta ; const Template = ( ) => ( < ErrorMessage > An unexpected error occured < /ErrorMessage>); export const ErrorMessageView = Template . bind ( { } ) ;