({
href,
title,
description,
trailing,
member = false,
size = PlusEntryRowSize.Medium,
onClick,
className,
}: PlusEntryRowProps)
| 40 | } |
| 41 | |
| 42 | export const PlusEntryRow = ({ |
| 43 | href, |
| 44 | title, |
| 45 | description, |
| 46 | trailing, |
| 47 | member = false, |
| 48 | size = PlusEntryRowSize.Medium, |
| 49 | onClick, |
| 50 | className, |
| 51 | }: PlusEntryRowProps): ReactElement => ( |
| 52 | <Link href={href} passHref> |
| 53 | <a |
| 54 | href={href} |
| 55 | onClick={onClick} |
| 56 | className={classNames('focus-outline flex items-center gap-2', className)} |
| 57 | > |
| 58 | <PlusTile |
| 59 | muted={member} |
| 60 | className={tileClassName[size]} |
| 61 | iconSize={tileIconSize[size]} |
| 62 | /> |
| 63 | <span className="flex min-w-0 flex-1 flex-col gap-0.5"> |
| 64 | <Typography |
| 65 | type={TypographyType.Subhead} |
| 66 | color={TypographyColor.Primary} |
| 67 | bold |
| 68 | truncate |
| 69 | > |
| 70 | {title} |
| 71 | </Typography> |
| 72 | <Typography |
| 73 | type={TypographyType.Footnote} |
| 74 | color={TypographyColor.Tertiary} |
| 75 | truncate |
| 76 | > |
| 77 | {description} |
| 78 | </Typography> |
| 79 | </span> |
| 80 | {trailing ?? ( |
| 81 | <ArrowIcon |
| 82 | aria-hidden |
| 83 | size={IconSize.Size16} |
| 84 | className="rotate-90 text-text-quaternary tablet:hidden" |
| 85 | /> |
| 86 | )} |
| 87 | </a> |
| 88 | </Link> |
| 89 | ); |
nothing calls this directly
no outgoing calls
no test coverage detected