|
1 | 1 | import { useState } from 'react'
|
2 |
| -import { CopyIcon } from './icons/CopyIcon' |
| 2 | +import { LinkIcon } from './icons/LinkIcon' |
3 | 3 | import { TwitterIcon } from './icons/TwitterIcon'
|
4 | 4 | import { LinkedInIcon } from './icons/LinkedInIcon'
|
5 | 5 | import { BlueskyIcon } from './icons/BlueskyIcon'
|
@@ -50,45 +50,45 @@ export function ShareButtons({ url, title }: ShareButtonsProps) {
|
50 | 50 | <div className="flex flex-wrap gap-2">
|
51 | 51 | <button
|
52 | 52 | onClick={() => handleShare('reddit')}
|
53 |
| - className="p-2 rounded-lg bg-gray-100 hover:bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300 transition-colors" |
| 53 | + className="p-2 rounded-lg bg-gray-100 hover:bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300 transition-colors cursor-pointer" |
54 | 54 | aria-label="Share on Reddit"
|
55 | 55 | >
|
56 | 56 | <RedditIcon className="w-5 h-5" />
|
57 | 57 | </button>
|
58 | 58 |
|
59 | 59 | <button
|
60 | 60 | onClick={() => handleShare('linkedin')}
|
61 |
| - className="p-2 rounded-lg bg-gray-100 hover:bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300 transition-colors" |
| 61 | + className="p-2 rounded-lg bg-gray-100 hover:bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300 transition-colors cursor-pointer" |
62 | 62 | aria-label="Share on LinkedIn"
|
63 | 63 | >
|
64 | 64 | <LinkedInIcon className="w-5 h-5" />
|
65 | 65 | </button>
|
66 | 66 |
|
67 | 67 | <button
|
68 | 68 | onClick={() => handleShare('bluesky')}
|
69 |
| - className="p-2 rounded-lg bg-gray-100 hover:bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300 transition-colors" |
| 69 | + className="p-2 rounded-lg bg-gray-100 hover:bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300 transition-colors cursor-pointer" |
70 | 70 | aria-label="Share on Bluesky"
|
71 | 71 | >
|
72 | 72 | <BlueskyIcon className="w-5 h-5" />
|
73 | 73 | </button>
|
74 | 74 |
|
75 | 75 | <button
|
76 | 76 | onClick={() => handleShare('twitter')}
|
77 |
| - className="p-2 rounded-lg bg-gray-100 hover:bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300 transition-colors" |
| 77 | + className="p-2 rounded-lg bg-gray-100 hover:bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300 transition-colors cursor-pointer" |
78 | 78 | aria-label="Share on Twitter"
|
79 | 79 | >
|
80 | 80 | <TwitterIcon className="w-5 h-5" />
|
81 | 81 | </button>
|
82 | 82 |
|
83 | 83 | <button
|
84 | 84 | onClick={handleCopy}
|
85 |
| - className="p-2 rounded-lg bg-gray-100 hover:bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300 transition-colors relative" |
| 85 | + className="p-2 rounded-lg bg-gray-100 hover:bg-gray-200 dark:bg-gray-800 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300 transition-colors cursor-pointer relative" |
86 | 86 | aria-label="Copy link to clipboard"
|
87 | 87 | >
|
88 |
| - <CopyIcon className="w-5 h-5" /> |
| 88 | + <LinkIcon className="w-5 h-5" /> |
89 | 89 | {copied && (
|
90 | 90 | <span className="absolute -top-8 left-1/2 transform -translate-x-1/2 bg-gray-800 dark:bg-gray-200 text-white dark:text-gray-800 text-xs px-2 py-1 rounded">
|
91 |
| - Copied! |
| 91 | + URL Copied! |
92 | 92 | </span>
|
93 | 93 | )}
|
94 | 94 | </button>
|
|
0 commit comments