ce2c341910
Co-authored-by: Panayiotis Lipiridis <lipiridis@gmail.com>
16 lines
364 B
TypeScript
16 lines
364 B
TypeScript
import React from "react";
|
|
import { questionCircle } from "../components/icons";
|
|
|
|
type HelpIconProps = {
|
|
title?: string;
|
|
name?: string;
|
|
id?: string;
|
|
onClick?(): void;
|
|
};
|
|
|
|
export const HelpIcon = (props: HelpIconProps) => (
|
|
<label title={`${props.title} — ?`} className="help-icon">
|
|
<div onClick={props.onClick}>{questionCircle}</div>
|
|
</label>
|
|
);
|