import { boolean , number } from '@storybook/addon-knobs' ; export const getLegendSizeKnob = ( group ? ) => { const enabled = boolean ( 'enable legend size' , false , group ) ; const size = enabled ? number ( 'legend size' , 200 , { min : 0 , step : 1 } , group ) : NaN ; return size ; } ;