import type { ReactNode } from "react"; import { memo } from "react"; import { tss } from "../tss"; export type GlCardProps = { className?: string; children?: ReactNode; link?: { href: string; onClick?: () => void; }; }; export const GlCard = memo((props: GlCardProps) => { const { children, link, className } = props; const { classes, cx } = useStyles({ "isLink": link !== undefined }); const onClick = (() => { if (link === undefined) { return undefined; } return () => window.open(link.href, "_blank"); })(); return (