HelpIcon.tsx 364 B

123456789101112131415
  1. import React from "react";
  2. import { questionCircle } from "../components/icons";
  3. type HelpIconProps = {
  4. title?: string;
  5. name?: string;
  6. id?: string;
  7. onClick?(): void;
  8. };
  9. export const HelpIcon = (props: HelpIconProps) => (
  10. <label title={`${props.title} — ?`} className="help-icon">
  11. <div onClick={props.onClick}>{questionCircle}</div>
  12. </label>
  13. );