diff --git a/src/pages/reader/Header/Middle.tsx b/src/pages/reader/Header/Middle.tsx
index 59b686d..fbf930e 100644
--- a/src/pages/reader/Header/Middle.tsx
+++ b/src/pages/reader/Header/Middle.tsx
@@ -1,5 +1,5 @@
-import { FC, ReactNode, useState } from "react";
-import { Button, ButtonProps, Input, Popover, Segmented } from "antd";
+import React, { FC, ReactNode, useState } from "react";
+import { Button, ButtonProps, Input, Popover, Segmented, Tooltip } from "antd";
import {
UndoOutlined,
RedoOutlined,
@@ -17,6 +17,11 @@ import { DrawCtrl } from "draft-pad/dist/lib";
import { useDrawCtrl, useUpdateDrawCtrl } from "lib/draw/DrawCtrl";
const btnProps: ButtonProps = { type: "text" };
+const addTip = (icon: React.ReactNode, title = ""): React.ReactNode => (
+
+ {icon}
+
+);
export const HeaderMiddle: FC<{
handleUndo: () => void;
@@ -27,14 +32,14 @@ export const HeaderMiddle: FC<{
}
+ icon={addTip(
, "Undo")}
onClick={handleUndo}
disabled={!undoable}
/>
}
+ icon={addTip(
, "Redo")}
onClick={handleRedo}
disabled={!redoable}
/>
@@ -60,7 +65,10 @@ const PenButton = () => {
>
}
+ icon={addTip(
+
,
+ "Draw"
+ )}
data-active={mode === "draw"}
/>
@@ -68,7 +76,7 @@ const PenButton = () => {