import { VariantProps } from 'class-variance-authority' import { Typography } from '../../Typography' import { variants } from './variants' import { VideoPlayer } from '..' import { VideoPlayerProps } from '../types' import styles from './videoWithCard.module.css' interface TextCardProps { variant: 'text' heading: string text?: string } interface QuoteCardProps { variant: 'quote' quote: string author: string authorDescription?: string } type VideoWithCardProps = VariantProps & (TextCardProps | QuoteCardProps) & { video: Pick } export function VideoWithCard(props: VideoWithCardProps) { const { variant, style, video } = props const classNames = variants({ variant, style, }) return (
) } function CardContent(props: VideoWithCardProps) { if (props.variant === 'quote') { const { quote, author, authorDescription } = props return ( <>
{quote}
{author} {authorDescription ? ( {authorDescription} ) : null} ) } const { heading, text } = props return ( <>

{heading}

{text ? (

{text}

) : null} ) }