import React from 'react' ; import DeleteTrustedCluster from './DeleteTrust' ; export default { title : 'Teleport/TrustedClusters/Delete' , } ; export const Comfirm = ( ) => < DeleteTrustedCluster { ... props } / > ; const props = { name : 'sample-trusted-cluster' , onDelete : ( ) => { return Promise . reject ( new Error ( 'server error' ) ) ; } , onClose : ( ) => null , } ;