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

24 lines
568 B
TypeScript
Raw Permalink Normal View History

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({
2020-05-24 04:38:24 +05:30
className,
logo,
label,
onClick,
2017-07-22 21:27:38 +05:30
}: {
2020-05-24 04:38:24 +05:30
className: string;
logo: string;
label: string;
onClick: (event: React.MouseEvent<any>) => void;
2017-07-22 21:27:38 +05:30
}) {
2020-05-24 04:38:24 +05:30
return (
<div className={clsx(styles.osTile, className)} onClick={onClick} data-testid="os-tile">
<img className={styles.osLogo} src={logo} alt={label} />
<div className={styles.osName}>{label}</div>
</div>
);
2017-07-22 21:27:38 +05:30
}