({
href,
onClick,
children,
...props
}: ComponentProps<'a'> & {
href?: string;
onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
})
| 47 | ); |
| 48 | |
| 49 | const ArticleLink = ({ |
| 50 | href, |
| 51 | onClick, |
| 52 | children, |
| 53 | ...props |
| 54 | }: ComponentProps<'a'> & { |
| 55 | href?: string; |
| 56 | onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void; |
| 57 | }) => { |
| 58 | const clickHandlers = onClick |
| 59 | ? combinedClicks<HTMLAnchorElement>(onClick) |
| 60 | : undefined; |
| 61 | return ( |
| 62 | <a |
| 63 | href={href} |
| 64 | title="Go to post" |
| 65 | target="_blank" |
| 66 | rel={anchorNofollowRel} |
| 67 | {...clickHandlers} |
| 68 | {...props} |
| 69 | > |
| 70 | {children} |
| 71 | </a> |
| 72 | ); |
| 73 | }; |
| 74 | |
| 75 | export function PostContentRaw({ |
| 76 | post, |
nothing calls this directly
no test coverage detected