hookshot/web/components/ServiceCard.tsx
2022-04-08 16:20:40 +01:00

13 lines
503 B
TypeScript

import { h, FunctionComponent } from "preact";
import style from "./ServiceCard.module.scss";
export const ServiceCard: FunctionComponent<{serviceName: string, iconUrl: string, onConfigure: () => void}> = ({ serviceName, iconUrl, onConfigure }) => {
return <div className={`card ${style.serviceCard}`}>
<img style="width: 48px;" src={iconUrl} />
<div>
<span>{serviceName}</span>
<button onClick={onConfigure}>Configure</button>
</div>
</div>;
};