2020-03-02 10:52:48 +04:00
|
|
|
export function BadgeLink({ target='_blank', variant ='success', badgeText, href, children }) {
|
2020-03-01 10:27:15 +04:00
|
|
|
return (
|
|
|
|
<p className='mb-0'>
|
|
|
|
<a href={href} target={ target }>
|
|
|
|
<span style={{ position: 'relative', top: '-2px'}} className={`badge badge-${variant}`}>{badgeText}</span> { children }
|
|
|
|
</a>
|
|
|
|
</p>
|
|
|
|
);
|
|
|
|
}
|