import * as React from 'react' ; type Orientation = 'horizontal' | 'vertical' ; interface SeparatorProps { orientation ? : Orientation ; units ? : number ; } const style = ( orientation , units ) => { return orientation === 'horizontal' ? { display : 'inline-block' , minWidth : units , width : units , } : { display : 'block' , flexShrink : 0 , height : units , minHeight : units , } ; } ; const Separator = ( props ) => ( < span style = { style ( props . orientation || 'horizontal' , props . units || 10 ) } / > ) ; export default Separator ;