import React from 'react' ; import DeleteRole from './DeleteRole' ; export default { title : 'Teleport/Roles/DeleteRole' , } ; export const DeleteRoleDialog = ( ) => < DeleteRole { ... props } / > ; DeleteRoleDialog . storyName = 'Confirm' ; const props = { name : 'sample-role3' , onDelete : ( ) => { return Promise . reject ( new Error ( 'server error' ) ) ; } , onClose : ( ) => null , } ;