mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 10:18:27 -04:00
23 lines
519 B
TypeScript
23 lines
519 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 }: Props) => (
|
|
<a
|
|
className={classNames("no-underline", styles.link)}
|
|
href={`https://github.com/${repo}`}
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
>
|
|
<OctocatOcticon fill="currentColor" className={classNames("icon", className)} />
|
|
</a>
|
|
);
|
|
|
|
export default OctocatLink;
|