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; } const LinkCard = ({ openInNewTab, linkDescription, url, children, ...other }: ButtonCardProps & LinkProps) => { return ( <> {linkDescription} {children} ); }; export default React.memo(LinkCard);