import React from 'react'; import { Box } from './Box'; import { Text } from './Text'; import { ImagePlaceholder } from './ImagePlaceholder'; import { Image } from './Image'; export interface MediaPreviewCardProps { src?: string; alt?: string; title?: string; subtitle?: string; aspectRatio?: string; isLoading?: boolean; error?: string; onClick?: () => void; className?: string; actions?: React.ReactNode; } export function MediaPreviewCard({ src, alt = 'Media preview', title, subtitle, aspectRatio = '16/9', isLoading, error, onClick, className = '', actions, }: MediaPreviewCardProps) { return ( {isLoading ? ( ) : error ? ( ) : src ? ( {alt} ) : ( )} {actions && ( {actions} )} {(title || subtitle) && ( {title && ( {title} )} {subtitle && ( {subtitle} )} )} ); }