import styled , { CSSObject } from '@emotion/styled' ; import { ElementComponent } from '..' ; export const ellipsisStyles = { whiteSpace : 'nowrap' , textOverflow : 'ellipsis' , overflow : 'hidden' , } ; export const EllipsisText = ( styled ( 'span' ) ( ellipsisStyles ) as any ) as ElementComponent < 'span' , { } > ;