computer-scienceangular-roadmapbackend-roadmapblockchain-roadmapdba-roadmapdeveloper-roadmapdevops-roadmapfrontend-roadmapgo-roadmaphactoberfestjava-roadmapjavascript-roadmapnodejs-roadmappython-roadmapqa-roadmapreact-roadmaproadmapstudy-planvue-roadmapweb3-roadmap
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
302 B
15 lines
302 B
5 years ago
|
import styled from 'styled-components';
|
||
|
|
||
|
const Link = styled.a`
|
||
|
font-weight: 600;
|
||
|
`;
|
||
|
|
||
|
const EnrichedLink = props => {
|
||
|
return (
|
||
|
<Link href={ props.href } target={ /^http(s)?:\/\//.test(props.href) ? '_blank' : '_self' }>
|
||
|
{ props.children }
|
||
|
</Link>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default EnrichedLink;
|