mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 18:50:29 -04:00
18 lines
496 B
TypeScript
18 lines
496 B
TypeScript
import classNames from "classnames";
|
|
import { OctocatOcticon } from "../Icons";
|
|
|
|
import styles from "./OctocatLink.module.css";
|
|
|
|
type Props = {
|
|
repo: string;
|
|
className?: string;
|
|
};
|
|
|
|
const OctocatLink = ({ repo, className, ...rest }: Props) => (
|
|
<a className={styles.link} href={`https://github.com/${repo}`} target="_blank" rel="noopener noreferrer" {...rest}>
|
|
<OctocatOcticon fill="currentColor" className={classNames(styles.icon, className)} />
|
|
</a>
|
|
);
|
|
|
|
export default OctocatLink;
|