import React from 'react' ; import { Sessions } from './Sessions' ; import { sessions } from './fixtures' ; export default { title : 'Teleport/ActiveSessions' , } ; export function Loaded ( ) { const props = { sessions , onRefresh , attempt : { isSuccess : true , isProcessing : false , isFailed : false , message : '' , } , } ; return < Sessions { ... props } / > ; } const onRefresh = ( ) => { return Promise . resolve ( ) ; } ;