accounts-frontend/packages/app/components/profile/multiFactorAuth/instructions/OsTile.tsx

24 lines
524 B
TypeScript
Raw Normal View History

2017-07-22 21:27:38 +05:30
import React from 'react';
import classNames from 'classnames';
import styles from './instructions.scss';
export default function OsInstruction({
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
}) {
return (
<div className={classNames(styles.osTile, className)} onClick={onClick}>
<img className={styles.osLogo} src={logo} alt={label} />
<div className={styles.osName}>{label}</div>
</div>
);
2017-07-22 21:27:38 +05:30
}