mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00

* Major package upgrades * Update rust deps and fix a few things * Drop 18 testing * Use node 20 * lint rust * lint * changelog * Drop usage of SVGs, use compound elements. * Update widget API * Drop usage of SVGs, use compound elements. * Add dark mode for widgets * changelog * Remove yarn-error.log
20 lines
543 B
TypeScript
20 lines
543 B
TypeScript
import style from "./ConnectionCard.module.scss";
|
|
|
|
interface IProps {
|
|
imageSrc: string;
|
|
darkImage?: boolean;
|
|
serviceName: string;
|
|
description: string;
|
|
key: string;
|
|
onClick: () => void;
|
|
}
|
|
|
|
export function ConnectionCard(props: IProps) {
|
|
return <div className={style.card} onClick={props.onClick}>
|
|
<img alt="" src={props.imageSrc} className={props.darkImage ? style.invert : ''} />
|
|
<div>
|
|
<span>{props.serviceName}</span>
|
|
<p>{props.description}</p>
|
|
</div>
|
|
</div>;
|
|
}
|