MCPcopy Create free account
hub / github.com/dailydotdev/apps / VideoImage

Function VideoImage

packages/shared/src/components/image/VideoImage.tsx:20–55  ·  view source on GitHub ↗
({
  size = IconSize.XXLarge,
  imageProps,
  className,
  overlay,
  overlayClassName,
  CardImageComponent = CardImage,
}: VideoImageProps)

Source from the content-addressed store, hash-verified

18}
19
20const 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
57export default VideoImage;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected