/* eslint-disable react/jsx-props-no-spreading */ import cx from "classnames"; import { ComponentDefaultTestId, getTestId } from "../../../tests/test-ids-utils"; import React, { FC, useContext } from "react"; import Link, { LinkProps } from "../../Link/Link"; import styles from "./AlertBannerLink.module.scss"; import { TypographyColor } from "../../Typography/TypographyConstants"; import { AlertBannerContext } from "../AlertBannerContext"; export interface AlertBannerLinkProps extends LinkProps { marginLeft?: boolean; } const AlertBannerLink: FC = ({ marginLeft = false, id, "data-testid": dataTestId, ...linkProps }) => { const { textColor } = useContext(AlertBannerContext); const classNames = cx({ [styles.marginLeft]: marginLeft }); return (
); }; Object.assign(AlertBannerLink, { isAlertBannerItem: true }); export default AlertBannerLink;