import { Box, VStack, HStack, SpanBox } from '../../elements/LayoutPrimitives'
import { CoverImage } from '../../elements/CoverImage'
import { StyledText } from '../../elements/StyledText'
import { authoredByText } from '../ArticleSubtitle'
import { MoreOptionsIcon } from '../../elements/images/MoreOptionsIcon'
import { theme } from '../../tokens/stitches.config'
import { CardMenu } from '../CardMenu'
import { LabelChip } from '../../elements/LabelChip'
import { ProgressBar } from '../../elements/ProgressBar'
import type { LinkedItemCardProps } from './CardTypes'
export function LibraryGridCard(props: LinkedItemCardProps): JSX.Element {
return (
{
props.handleAction('showDetail')
}}
>
{props.item.image && (
{
;(e.target as HTMLElement).style.display = 'none'
}}
/>
)}
{/* {
// This is here to prevent menu click events from bubbling
// up and causing us to "click" on the link item.
e.stopPropagation()
}}
>
}
actionHandler={props.handleAction}
/>
*/}
{/*
{props.item.author && (
{authoredByText(props.item.author)}
)}
{props.originText}
*/}
{props.item.description}
{props.item.labels?.map(({ name, color }, index) => (
))}
)
}
type CardTitleProps = {
title: string
}
function CardTitle(props: CardTitleProps): JSX.Element {
return (
{props.title}
)
}