MCPcopy Create free account
hub / github.com/dailydotdev/apps / ArticleLink

Function ArticleLink

packages/shared/src/components/post/PostContent.tsx:49–73  ·  view source on GitHub ↗
({
  href,
  onClick,
  children,
  ...props
}: ComponentProps<'a'> & {
  href?: string;
  onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
})

Source from the content-addressed store, hash-verified

47);
48
49const 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
75export function PostContentRaw({
76 post,

Callers

nothing calls this directly

Calls 1

combinedClicksFunction · 0.90

Tested by

no test coverage detected