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({
|
2019-11-27 11:03:32 +02:00
|
|
|
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
|
|
|
}) {
|
2019-11-27 11:03:32 +02:00
|
|
|
return (
|
2019-12-29 16:20:08 +02:00
|
|
|
<div
|
|
|
|
className={clsx(styles.osTile, className)}
|
|
|
|
onClick={onClick}
|
|
|
|
data-testid="os-tile"
|
|
|
|
>
|
2019-11-27 11:03:32 +02:00
|
|
|
<img className={styles.osLogo} src={logo} alt={label} />
|
|
|
|
<div className={styles.osName}>{label}</div>
|
|
|
|
</div>
|
|
|
|
);
|
2017-07-22 18:57:38 +03:00
|
|
|
}
|