export interface ButtonProps { readonly outline : boolean ; readonly color : 'primary' | 'secondary' | 'light' | 'clear' ; } const buttonActive = { outline : true , color : 'primary' } ; const buttonInactive = { outline : false , color : 'clear' } ; export class Buttons { public static activeProps ( active ) { return active ? buttonActive : buttonInactive ; } }