({
size = IconSize.XXLarge,
imageProps,
className,
overlay,
overlayClassName,
CardImageComponent = CardImage,
}: VideoImageProps)
| 18 | } |
| 19 | |
| 20 | const VideoImage = ({ |
| 21 | size = IconSize.XXLarge, |
| 22 | imageProps, |
| 23 | className, |
| 24 | overlay, |
| 25 | overlayClassName, |
| 26 | CardImageComponent = CardImage, |
| 27 | }: VideoImageProps): ReactElement => { |
| 28 | return ( |
| 29 | <div |
| 30 | className={classNames( |
| 31 | className, |
| 32 | !overlay && 'pointer-events-none', |
| 33 | 'relative flex h-auto max-h-fit w-full items-center justify-center overflow-hidden rounded-12', |
| 34 | )} |
| 35 | > |
| 36 | {overlay || ( |
| 37 | <span |
| 38 | className={classNames( |
| 39 | 'absolute inset-y-0 left-1 right-1 h-full rounded-12 bg-overlay-tertiary-black', |
| 40 | overlayClassName, |
| 41 | )} |
| 42 | /> |
| 43 | )} |
| 44 | {!overlay && ( |
| 45 | <PlayIcon |
| 46 | secondary |
| 47 | size={size} |
| 48 | data-testid="playIconVideoPost" |
| 49 | className="absolute" |
| 50 | /> |
| 51 | )} |
| 52 | <CardImageComponent {...imageProps} type={ImageType.Post} /> |
| 53 | </div> |
| 54 | ); |
| 55 | }; |
| 56 | |
| 57 | export default VideoImage; |
nothing calls this directly
no outgoing calls
no test coverage detected