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

17 lines
525 B
TypeScript

import classNames from "classnames";
import { OctocatOcticon } from "../Icons";
import styles from "./OctocatLink.module.css";
type OctocatLinkProps = JSX.IntrinsicElements["a"] & {
repo: string;
};
const OctocatLink = ({ repo, className, ...rest }: OctocatLinkProps) => (
<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;