snapshot of https://github.com/excalidraw/excalidraw.git (master, 2026-09-16; blobs > 131072B omitted)
Some checks failed
Tests / test (push) Failing after 15s
Some checks failed
Tests / test (push) Failing after 15s
This commit is contained in:
23
packages/excalidraw/components/HelpButton.tsx
Normal file
23
packages/excalidraw/components/HelpButton.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import { t } from "../i18n";
|
||||
|
||||
import { HelpIcon } from "./icons";
|
||||
import { Tooltip } from "./Tooltip";
|
||||
|
||||
type HelpButtonProps = {
|
||||
name?: string;
|
||||
id?: string;
|
||||
onClick?(): void;
|
||||
};
|
||||
|
||||
export const HelpButton = (props: HelpButtonProps) => (
|
||||
<Tooltip label={`${t("helpDialog.title")} — ?`}>
|
||||
<button
|
||||
className="help-icon"
|
||||
onClick={props.onClick}
|
||||
type="button"
|
||||
aria-label={t("helpDialog.title")}
|
||||
>
|
||||
{HelpIcon}
|
||||
</button>
|
||||
</Tooltip>
|
||||
);
|
||||
Reference in New Issue
Block a user