import React from 'react' ; import { SyncBadge , SyncBadgeProps } from './sync_badge' ; export default { title : 'app/TransactionDetails/SyncBadge' , component : SyncBadge , argTypes : { sync : { control : { type : 'inline-radio' , options : [ true , false , undefined ] } , } , } , } ; export function Example ( { sync } ) { return < SyncBadge sync = { sync } />; } Example . args = { sync : true } as SyncBadgeProps ;