export enum DefaultEditorSize { SMALL = 'small' , MEDIUM = 'medium' , LARGE = 'large' } export const getInitialWidth = ( size ) => { switch ( size ) { case DefaultEditorSize . SMALL : return 15 ; case DefaultEditorSize . LARGE : return 50 ; case DefaultEditorSize . MEDIUM : default : return 30 ; } } ;