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.
21 lines
571 B
21 lines
571 B
import React from 'react'; |
|
import { Link, Text, Badge } from '@chakra-ui/react'; |
|
|
|
type BadgeLinkType = { |
|
target: string; |
|
badgeText: string; |
|
href: string; |
|
children: React.ReactNode |
|
}; |
|
|
|
export function BadgeLink(props: BadgeLinkType) { |
|
const { target = '_blank', badgeText, href, children } = props; |
|
|
|
return ( |
|
<Text mb={0}> |
|
<Link fontWeight={500} textDecoration='underline' href={href} target={target}> |
|
<Badge colorScheme={'purple'} style={{ position: 'relative', top: '-2px' }}>{badgeText}</Badge> {children} |
|
</Link> |
|
</Text> |
|
); |
|
}
|
|
|