import { Box, VStack, HStack } from '../elements/LayoutPrimitives' import { StyledText } from '../elements/StyledText' import { CoverImage } from '../elements/CoverImage' import { ArticleSubtitle } from './ArticleSubtitle' type ShareArticleViewProps = { url: string title: string imageURL?: string author?: string description?: string originalArticleUrl: string publishedAt: string } export function ShareArticleView(props: ShareArticleViewProps): JSX.Element { return ( {props.imageURL && ( { (e.target as HTMLElement).style.display = 'none' }} /> )} {props.title} ) }