excalidraw/src/components/HelpIcon.tsx

22 lines
417 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) => (
<button
className="help-icon"
onClick={props.onClick}
type="button"
title={`${props.title} — ?`}
aria-label={props.title}
>
{questionCircle}
</button>
);