21 lines
379 B
TypeScript
21 lines
379 B
TypeScript
import React from 'react';
|
|
import icon from 'assets/images/icon-help-3.svg';
|
|
import './Help.scss';
|
|
|
|
type Size = 'x1' | 'x2' | 'x3';
|
|
|
|
interface Props {
|
|
link: string;
|
|
size?: Size;
|
|
}
|
|
|
|
const Help = ({ size = 'x1', link }: Props) => {
|
|
return (
|
|
<a href={link} className={`Help Help-${size}`} target={'_blank'}>
|
|
<img src={icon} />
|
|
</a>
|
|
);
|
|
};
|
|
|
|
export default Help;
|