excalidraw/src/components/HelpIcon.tsx

16 lines
364 B
TypeScript
Raw Normal View History

2020-04-07 16:12:10 +05:30
import React from "react";
import { questionCircle } from "../components/icons";
2020-04-07 16:12:10 +05:30
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>
);