import React from "react"; import { Link as CarbonLink, LinkProps as CarbonLinkProps } from "@carbon/react"; import { openInNewTab } from "../../common/utils/openInNewTab"; import { CLASSPREFIX as eccgui } from "../../configuration/constants"; export type LinkProps = Omit, "ref">; export const Link = ({ className = "", children, href, onClick, ...otherProps }: LinkProps) => { return ( ) => openInNewTab(e, onClick, href)} > {children} ); }; export default Link;