import { AspectImage, Box, Link, Skeleton } from "@front10/base-elements"; import * as React from "react"; import { SingleCardProps } from "../.."; import { YouTubeIcon } from "../../images/YouTubeIcon"; import { CenterOverlay } from "./CenterOverlay"; interface Props { showPlayIcon?: boolean; showTime?: boolean; time?: string; url?: string; alt?: string; image?: string; objectFit?: SingleCardProps["imageCover"]; isLoading?: boolean; } export function YouTubeVidePreview(props: Props) { return ( {props.showPlayIcon && ( )} {props.showTime ? ( {props.time} ) : null} ); }