import { classNames } from "@repo/config-tailwind/classNames" import { Link as NextLink } from "@repo/i18n/routing" import { FiExternalLink } from "react-icons/fi" export interface LinkProps extends React.ComponentProps { isExternal?: boolean } /** * Link is an actionable text component with connection to another web pages. * @param props * @returns */ export const Link: React.FC = (props) => { const { className, children, target, isExternal = true, ...rest } = props return ( {children} {target === "_blank" && isExternal ? ( ) : ( <> )} ) }