/** @jsxRuntime classic */ /** @jsx jsx */ import { Card, Inline, jsx, Link, Stack, Text, useContainerSize, } from "@front10/base-elements"; import * as React from "react"; import { SingleCardProps } from "../CardProps"; import { TiktokImage } from "./TiktokImage"; function TiktokC( { data: { image, imageAltText = "", text9: gifUrl, text10: videoUrl, //video count text11, link, } = {}, showText11 = 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 > 150 ? ( {text11} ) : null} ); } const TiktokCMWithRef = React.forwardRef(TiktokC); export { TiktokCMWithRef as TiktokC };