2020-04-07 16:12:10 +05:30
|
|
|
import React from "react";
|
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) => (
|
|
|
|
<label title={`${props.title} — ?`} className="help-icon">
|
2021-01-17 17:46:23 +01:00
|
|
|
<div onClick={props.onClick}>{questionCircle}</div>
|
2020-05-20 16:21:37 +03:00
|
|
|
</label>
|
|
|
|
);
|