Created
July 19, 2020 23:10
-
-
Save lseemann/9e82f46893edc1cd2044febfb58ede6c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Refer = ({ | |
headline, body, link, link_text | |
}: any) => { | |
if (!headline || !link) { | |
return null; | |
} | |
return ( | |
<aside> | |
<h1>{headline}</h1> | |
{body && <p>{body}</p>} | |
<a href={link}>{link_text || 'Learn more'}</a> | |
</aside> | |
); | |
}; | |
export default Refer; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment