You cannot 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
567 B
JavaScript
21 lines
567 B
JavaScript
import React from 'react';
|
|
import styles from './GithubShields.less';
|
|
|
|
// source = [
|
|
// {
|
|
// href: 'https://github.com/jaywcjlove/hotkeys/network',
|
|
// img: 'https://img.shields.io/github/forks/jaywcjlove/hotkeys.svg?style=social'
|
|
// },
|
|
// ]
|
|
export default function GithubShields({ source }) {
|
|
return (
|
|
<div className={styles.shields}>
|
|
{source.map((item, idx) => (
|
|
<a key={`${idx}${item.href}`} href={item.href} target="_blank" rel="noopener noreferrer">
|
|
<img src={item.img} alt="" />
|
|
</a>
|
|
))}
|
|
</div>
|
|
);
|
|
}
|