({
url,
...rest
}: React.DetailedHTMLProps<
React.HTMLAttributes<HTMLDivElement>,
HTMLDivElement
> & { url: string })
| 2 | import styles from "./BlogAttribution.module.css"; |
| 3 | |
| 4 | const BlogAttribution = ({ |
| 5 | url, |
| 6 | ...rest |
| 7 | }: React.DetailedHTMLProps< |
| 8 | React.HTMLAttributes<HTMLDivElement>, |
| 9 | HTMLDivElement |
| 10 | > & { url: string }) => ( |
| 11 | <div {...rest} className={styles.container}> |
| 12 | <div> |
| 13 | <img alt="Tejas' Face" src="https://github.com/tejasq.png" /> |
| 14 | </div> |
| 15 | <div> |
| 16 | <p> |
| 17 | Tejas has a special love for humans and code that sometimes finds its |
| 18 | way onto this blog and other parts of the internet. Say hi on{" "} |
| 19 | <a |
| 20 | href="https://twitter.com/tejaskumar_" |
| 21 | rel="noopener" |
| 22 | target="_blank" |
| 23 | > |
| 24 | |
| 25 | </a> |
| 26 | ! |
| 27 | <br /> |
| 28 | <br /> |
| 29 | If you particularly enjoyed this post, consider{" "} |
| 30 | <a |
| 31 | href={`https://twitter.com/share?url=${encodeURIComponent( |
| 32 | url |
| 33 | )}&text=${encodeURIComponent( |
| 34 | "I just read this article by @tejaskumar_ and I would love to share it with you!" |
| 35 | )}`} |
| 36 | rel="noopener" |
| 37 | target="_blank" |
| 38 | > |
| 39 | sharing it |
| 40 | </a> |
| 41 | . |
| 42 | </p> |
| 43 | </div> |
| 44 | </div> |
| 45 | ); |
| 46 | |
| 47 | export default BlogAttribution; |
nothing calls this directly
no outgoing calls
no test coverage detected