import * as React from "react"; import { cx } from "@emotion/css"; import { Box } from "../../styleUtils/modifiers"; import Card, { CardProps } from "./Card"; import { buttonCard, cardLink, cardWithLink } from "../style"; import { LinkProps } from "../../link/types"; import UnstyledLink from "../../link/components/UnstyledLink"; export interface ButtonCardProps extends CardProps { /** * What screenreaders read aloud for the link */ linkDescription: string; /** * Human-readable selector used for writing tests */ "data-cy"?: string; } const LinkCard = ({ openInNewTab, linkDescription, url, children, className, "data-cy": dataCy = "linkCard", ...other }: ButtonCardProps & LinkProps) => { return ( <> {linkDescription} {children} ); }; export default React.memo(LinkCard);