2021-01-17 17:46:23 +01:00
|
|
|
import { questionCircle } from "../components/icons";
|
2020-04-07 16:12:10 +05:30
|
|
|
|
|
|
|
type HelpIconProps = {
|
|
|
|
title?: string;
|
|
|
|
name?: string;
|
|
|
|
id?: string;
|
|
|
|
onClick?(): void;
|
|
|
|
};
|
|
|
|
|
2020-05-20 16:21:37 +03:00
|
|
|
export const HelpIcon = (props: HelpIconProps) => (
|
2021-03-23 16:48:10 +05:30
|
|
|
<button
|
|
|
|
className="help-icon"
|
|
|
|
onClick={props.onClick}
|
|
|
|
type="button"
|
|
|
|
title={`${props.title} — ?`}
|
|
|
|
aria-label={props.title}
|
|
|
|
>
|
|
|
|
{questionCircle}
|
|
|
|
</button>
|
2020-05-20 16:21:37 +03:00
|
|
|
);
|