1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-27 05:18:28 -04:00
jarv.is/components/OctocatLink/OctocatLink.tsx

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;