2017-07-22 21:27:38 +05:30
|
|
|
import React from 'react';
|
2019-12-08 01:13:08 +05:30
|
|
|
import clsx from 'clsx';
|
2017-07-22 21:27:38 +05:30
|
|
|
|
|
|
|
import styles from './instructions.scss';
|
|
|
|
|
|
|
|
export default function OsInstruction({
|
2019-11-27 14:33:32 +05:30
|
|
|
className,
|
|
|
|
logo,
|
|
|
|
label,
|
|
|
|
onClick,
|
2017-07-22 21:27:38 +05:30
|
|
|
}: {
|
2019-12-07 16:58:52 +05:30
|
|
|
className: string;
|
|
|
|
logo: string;
|
|
|
|
label: string;
|
|
|
|
onClick: (event: React.MouseEvent<any>) => void;
|
2017-07-22 21:27:38 +05:30
|
|
|
}) {
|
2019-11-27 14:33:32 +05:30
|
|
|
return (
|
2019-12-08 01:13:08 +05:30
|
|
|
<div className={clsx(styles.osTile, className)} onClick={onClick}>
|
2019-11-27 14:33:32 +05:30
|
|
|
<img className={styles.osLogo} src={logo} alt={label} />
|
|
|
|
<div className={styles.osName}>{label}</div>
|
|
|
|
</div>
|
|
|
|
);
|
2017-07-22 21:27:38 +05:30
|
|
|
}
|