11import React , { useState , useEffect } from 'react' ;
22import {
3- FacebookLogo ,
4- TwitterLogo ,
5- LinkedinLogo ,
6- LinkSimple ,
7- WhatsappLogo ,
8- RedditLogo ,
3+ FacebookLogoIcon ,
4+ TwitterLogoIcon ,
5+ LinkedinLogoIcon ,
6+ LinkSimpleIcon ,
7+ WhatsappLogoIcon ,
8+ RedditLogoIcon ,
99} from '@phosphor-icons/react' ;
1010import { useToast } from '../hooks/useToast' ;
1111
@@ -149,7 +149,7 @@ const ShareButtons = ({ title, url }) => {
149149 className = "text-gray-400 hover:text-primary-400 transition-colors"
150150 aria-label = "Copy link"
151151 >
152- < LinkSimple size = { 24 } />
152+ < LinkSimpleIcon size = { 24 } />
153153 </ button >
154154 ) : (
155155 < >
@@ -165,7 +165,7 @@ const ShareButtons = ({ title, url }) => {
165165 className = "text-gray-400 hover:text-blue-400 transition-colors"
166166 aria-label = "Share on Twitter"
167167 >
168- < TwitterLogo size = { 24 } />
168+ < TwitterLogoIcon size = { 24 } />
169169 </ button >
170170 < button
171171 onClick = { ( ) =>
@@ -179,7 +179,7 @@ const ShareButtons = ({ title, url }) => {
179179 className = "text-gray-400 hover:text-blue-600 transition-colors"
180180 aria-label = "Share on Facebook"
181181 >
182- < FacebookLogo size = { 24 } />
182+ < FacebookLogoIcon size = { 24 } />
183183 </ button >
184184 < button
185185 onClick = { ( ) =>
@@ -193,7 +193,7 @@ const ShareButtons = ({ title, url }) => {
193193 className = "text-gray-400 hover:text-blue-700 transition-colors"
194194 aria-label = "Share on LinkedIn"
195195 >
196- < LinkedinLogo size = { 24 } />
196+ < LinkedinLogoIcon size = { 24 } />
197197 </ button >
198198 < button
199199 onClick = { ( ) =>
@@ -207,7 +207,7 @@ const ShareButtons = ({ title, url }) => {
207207 className = "text-gray-400 hover:text-green-500 transition-colors"
208208 aria-label = "Share on WhatsApp"
209209 >
210- < WhatsappLogo size = { 24 } />
210+ < WhatsappLogoIcon size = { 24 } />
211211 </ button >
212212 < button
213213 onClick = { ( ) =>
@@ -221,14 +221,14 @@ const ShareButtons = ({ title, url }) => {
221221 className = "text-gray-400 hover:text-orange-500 transition-colors"
222222 aria-label = "Share on Reddit"
223223 >
224- < RedditLogo size = { 24 } />
224+ < RedditLogoIcon size = { 24 } />
225225 </ button >
226226 < button
227227 onClick = { ( ) => handleShare ( null , 'Copy Link' ) } // Pass null for platformUrl for Copy Link
228228 className = "text-gray-400 hover:text-primary-400 transition-colors"
229229 aria-label = "Copy link"
230230 >
231- < LinkSimple size = { 24 } />
231+ < LinkSimpleIcon size = { 24 } />
232232 </ button >
233233 </ >
234234 ) }
0 commit comments