import { styled } from '@stitches/react' import { VStack, HStack } from '../../elements/LayoutPrimitives' import { StyledMark, StyledText } from '../../elements/StyledText' import { LinkedItemCardAction, LinkedItemCardProps } from './CardTypes' export interface HighlightItemCardProps extends Pick { handleAction: (action: LinkedItemCardAction) => void } export const PreviewImage = styled('img', { objectFit: 'cover', cursor: 'pointer', }) export function HighlightItemCard(props: HighlightItemCardProps): JSX.Element { return ( { props.handleAction('showDetail') }} > {props.item.quote} {props.item.image && ( { ;(e.target as HTMLElement).style.display = 'none' }} /> )} {props.item.title} ) }