import * as React from 'react'; import PostHoverPreview from './PostHoverPreview'; import { anchorClassNamesForVisualStyle, iconClassNamesForSize, } from '../utils/hoverPreviewUtils'; interface PostHoverPreviewWrapperProps { visualStyle: 'sky-link' | 'description-section-link'; linkText: string; postTitle: string; postPath: string; postThumbnailPath: string; postThumbnailAlt: string; postDomainIcon?: string; creatorName?: string; creatorAvatarPath?: string; } export const PostHoverPreviewWrapper: React.FC< PostHoverPreviewWrapperProps > = ({ visualStyle, linkText, postTitle, postPath, postThumbnailPath, postThumbnailAlt, postDomainIcon, creatorName, creatorAvatarPath, }) => { return ( {postDomainIcon && ( {postThumbnailAlt} )} {visualStyle === 'description-section-link' && ( {postTitle} )} {linkText} ); }; export default PostHoverPreviewWrapper;