24 lines
506 B
TypeScript
Raw Normal View History

2017-07-22 18:57:38 +03:00
import React from 'react';
2019-12-07 21:43:08 +02:00
import clsx from 'clsx';
2017-07-22 18:57:38 +03:00
import styles from './instructions.scss';
export default function OsInstruction({
className,
logo,
label,
onClick,
2017-07-22 18:57:38 +03:00
}: {
2019-12-07 13:28:52 +02:00
className: string;
logo: string;
label: string;
onClick: (event: React.MouseEvent<any>) => void;
2017-07-22 18:57:38 +03:00
}) {
return (
2019-12-07 21:43:08 +02:00
<div className={clsx(styles.osTile, className)} onClick={onClick}>
<img className={styles.osLogo} src={logo} alt={label} />
<div className={styles.osName}>{label}</div>
</div>
);
2017-07-22 18:57:38 +03:00
}