/** @jsxRuntime classic */ /** @jsx jsx */ import { Box, Card, jsx, Link, Stack, useContainerSize, } from "@front10/base-elements"; import * as React from "react"; import { SingleCardProps } from "../CardProps"; import { TiktokImage } from "./TiktokImage"; function TiktokA( { data: { image, imageAltText = "", text9: gifUrl, text10: videoUrl, link, } = {}, showText1 = true, showText2 = true, showText3 = true, showText9: showGif, showText10: showVideo, imageCover = "cover", onCardClick, onCallToActionClick, tabIndex, isLoading, ...props }: SingleCardProps, ref: React.Ref ) { const cardWidth = useContainerSize(ref as any); let mediaShown: "image" | "video" | "gif" = "image"; if (showVideo && videoUrl) { mediaShown = "video"; } else if (showGif && gifUrl) { mediaShown = "gif"; } return ( ({ position: "relative", width: "100%", ...theme.layout?.cardContainer, minHeight: "fit-content", willChange: "transform", })} className="wx-card" > {cardWidth > 180 ? ( tiktok logo ) : null} ); } const TiktokAMWithRef = React.forwardRef(TiktokA); export { TiktokAMWithRef as TiktokA };