import { CSSObject } from '@emotion/core' ; const DEFAULT_MAX_WIDTH = 350 ; export const truncateStyles = ( maxWidth = DEFAULT_MAX_WIDTH ) : CSSObject => ( { display : 'inline-block' , maxWidth , overflow : 'hidden' , textOverflow : 'ellipsis' , whiteSpace : 'nowrap' , } ) ;