@@ -10,6 +10,7 @@ import {
10
10
EyeInvisibleOutlined ,
11
11
FireOutlined ,
12
12
FileMarkdownOutlined ,
13
+ ShareAltOutlined ,
13
14
} from "@ant-design/icons-svg"
14
15
import { renderIconDefinitionToSVGElement } from "@ant-design/icons-svg/es/helpers"
15
16
import tippy from "tippy.js"
@@ -22,9 +23,11 @@ const newButton = <HTMLButtonElement>document.getElementById("new-button")
22
23
const copyButton = < HTMLButtonElement > document . getElementById ( "copy-button" )
23
24
const hideButton = < HTMLButtonElement > document . getElementById ( "hide-button" )
24
25
const githubButton = < HTMLButtonElement > document . getElementById ( "github-button" )
26
+ const shareButton = < HTMLButtonElement > document . getElementById ( "share-button" )
25
27
const markdownButton = < HTMLButtonElement > (
26
28
document . getElementById ( "markdown-button" )
27
29
)
30
+
28
31
const singleViewButton = < HTMLButtonElement > (
29
32
document . getElementById ( "single-view-button" )
30
33
)
@@ -47,6 +50,7 @@ renderIcon(githubButton, GithubOutlined)
47
50
renderIcon ( hideButton , EyeInvisibleOutlined )
48
51
renderIcon ( markdownButton , FileMarkdownOutlined )
49
52
renderIcon ( singleViewButton , FireOutlined )
53
+ renderIcon ( shareButton , ShareAltOutlined )
50
54
51
55
tippy ( "#save-button" , {
52
56
content : "Save paste<br><span class='keybind'>Ctrl + S</span>" ,
@@ -112,6 +116,14 @@ tippy("#hide-button", {
112
116
allowHTML : true ,
113
117
} )
114
118
119
+ tippy ( "#share-button" , {
120
+ content : "Share paste" ,
121
+ placement : "top" ,
122
+ animation : "scale" ,
123
+ theme : "rosepine" ,
124
+ allowHTML : true ,
125
+ } )
126
+
115
127
const observer = new MutationObserver ( callback )
116
128
117
129
function callback ( ) {
0 commit comments