-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7959856
commit e1de151
Showing
4 changed files
with
75 additions
and
94 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import React from "react"; | ||
import { Twitter, Facebook, Instagram, Youtube, Github } from "lucide-react"; | ||
import { open } from "@tauri-apps/plugin-shell"; | ||
import { Button } from "@/components/ui/button"; | ||
interface SocialMediaUrls { | ||
twitter: string; | ||
facebook: string; | ||
instagram: string; | ||
youtube: string; | ||
github: string; | ||
} | ||
|
||
const SocialMediaIcons: React.FC<{ urls: SocialMediaUrls }> = ({ urls }) => { | ||
return ( | ||
<> | ||
<Button onClick={() => open(urls.twitter)} variant="outline" size="icon"> | ||
<Twitter className="w-5 h-5" /> | ||
</Button> | ||
<Button onClick={() => open(urls.facebook)} variant="outline" size="icon"> | ||
<Facebook className="w-5 h-5" /> | ||
</Button> | ||
<Button | ||
onClick={() => open(urls.instagram)} | ||
variant="outline" | ||
size="icon" | ||
> | ||
<Instagram className="w-5 h-5" /> | ||
</Button> | ||
<Button onClick={() => open(urls.youtube)} variant="outline" size="icon"> | ||
<Youtube className="w-5 h-5" /> | ||
</Button> | ||
<Button onClick={() => open(urls.github)} variant="outline" size="icon"> | ||
<Github className="w-5 h-5" /> | ||
</Button> | ||
</> | ||
); | ||
}; | ||
|
||
export default SocialMediaIcons; |
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,7 @@ | ||
{ | ||
"twitter": "https://twitter.com/ManjaroLinux", | ||
"facebook": "https://www.facebook.com/ManjaroLinux", | ||
"instagram": "https://www.instagram.com/manjaro_linux", | ||
"youtube": "https://www.youtube.com/c/ManjaroLinux", | ||
"github": "https://github.com/manjaro" | ||
} |