@@ -5,6 +5,7 @@ import { GoCopy, GoDownload, GoX } from 'react-icons/go';
5
5
import { track } from '@/constants/events' ;
6
6
import toast from 'react-hot-toast' ;
7
7
import { logException } from '@/utils/logger' ;
8
+ import { Tooltip } from 'react-tooltip' ;
8
9
9
10
type ShareButtonProps = {
10
11
imageUrl ?: string ;
@@ -279,35 +280,59 @@ const ShareMenu2 = ({
279
280
isSelected = { optionSelected === ShareOption . COPY }
280
281
onClick = { selectCopy }
281
282
>
282
- < GoCopy size = { 20 } />
283
+ < Tooltip id = "go-copy" />
284
+ < GoCopy
285
+ data-tooltip-id = "go-copy"
286
+ data-tooltip-content = "Copy"
287
+ size = { 20 }
288
+ />
283
289
</ Button >
284
290
285
291
< Button
286
292
isSelected = { optionSelected === ShareOption . TWEET }
287
293
onClick = { selectTweet }
288
294
>
289
- < CiTwitter size = { 20 } />
295
+ < Tooltip id = "ci-twitter" />
296
+ < CiTwitter
297
+ data-tooltip-id = "ci-twitter"
298
+ data-tooltip-content = "Share on X"
299
+ size = { 20 }
300
+ />
290
301
</ Button >
291
302
292
303
< Button
293
304
isSelected = { optionSelected === ShareOption . LINKEDIN }
294
305
onClick = { selectLinkedIn }
295
306
>
296
- < CiLinkedin size = { 18 } />
307
+ < Tooltip id = "ci-linkedIn" />
308
+ < CiLinkedin
309
+ data-tooltip-id = "ci-linkedIn"
310
+ data-tooltip-content = "Share on LinkedIn"
311
+ size = { 18 }
312
+ />
297
313
</ Button >
298
314
299
315
< Button
300
316
isSelected = { optionSelected === ShareOption . DOWNLOAD }
301
317
onClick = { selectDownload }
302
318
>
303
- < GoDownload size = { 18 } />
319
+ < Tooltip id = "go-download" />
320
+ < GoDownload
321
+ data-tooltip-id = "go-download"
322
+ data-tooltip-content = "Download Image"
323
+ size = { 18 }
324
+ />
304
325
</ Button >
305
326
306
327
< Button
307
328
isSelected = { optionSelected === ShareOption . COPY }
308
329
onClick = { selectCopy }
309
330
>
310
- < GoCopy size = { 18 } />
331
+ < GoCopy
332
+ data-tooltip-id = "go-copy"
333
+ data-tooltip-content = "Copy"
334
+ size = { 18 }
335
+ />
311
336
</ Button >
312
337
</ div >
313
338
< button
0 commit comments