Created
September 13, 2021 16:01
-
-
Save d88naimi/d45e9933e97b956bc963b5258677c7f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { Link } from "react-router-dom"; | |
import styles from "./AppLink.less"; | |
import cx from "classnames"; | |
export function AppLink(props) { | |
return ( | |
<Link | |
{...props} | |
className={cx(styles.AppLink, props.className, styles[props.type])} | |
> | |
{props.text} | |
{props.children} | |
</Link> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment