-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(added socials): updated user socials
- Loading branch information
1 parent
e4a9308
commit eafb141
Showing
7 changed files
with
286 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { FaFacebook, FaGithub, FaInstagram, FaLinkedin, FaXTwitter, FaYoutube } from "react-icons/fa6"; | ||
import { GiWorld } from "react-icons/gi"; | ||
|
||
export const getSocialMediaIcon = (platform: string, size?: string) => { | ||
if (!platform) return null; | ||
|
||
if (platform.includes("Youtube")) { | ||
return <FaYoutube size={size || "20px"} />; | ||
} else if (platform.includes("Twitter")) { | ||
return <FaXTwitter size={size || "20px"} />; | ||
} else if (platform.includes("GitHub")) { | ||
return <FaGithub size={size || "20px"} />; | ||
} else if (platform.includes("LinkedIn")) { | ||
return <FaLinkedin size={size || "20px"} />; | ||
} else if (platform.includes("Website")) { | ||
return <GiWorld size={size || "20px"} />; | ||
} else if (platform.includes("Facebook")) { | ||
return <FaFacebook size={size || "20px"} />; | ||
} else if (platform.includes("Instagram")) { | ||
return <FaInstagram size={size || "20px"} />; | ||
} | ||
|
||
return null; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.