forked from CopilotKit/CopilotKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsocials.tsx
More file actions
44 lines (41 loc) · 1.22 KB
/
Copy pathsocials.tsx
File metadata and controls
44 lines (41 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import Link from "next/link";
import { FaDiscord, FaGithub, FaEdit } from "react-icons/fa";
import { FaXTwitter } from "react-icons/fa6";
import { Button } from "@/components/ui/button";
import { cn } from "@/lib/utils";
const socials = [
{
icon: FaDiscord,
href: "https://discord.com/invite/6dffbvGU3D"
},
{
icon: FaGithub,
href: "https://github.com/CopilotKit/CopilotKit"
},
{
icon: FaXTwitter,
href: "https://x.com/copilotkit"
}
]
export type SocialProps = {
className?: string;
}
export function Socials({ className }: SocialProps) {
return (
<div className={cn("flex gap-1 justify-end", className)}>
{socials.map((social, index) => (
<Button
key={index}
variant="ghost"
size="icon"
asChild
className="h-10 w-10 text-indigo-500/80 hover:bg-indigo-500 hover:text-white"
>
<Link href={social.href} target="_blank" rel="noopener noreferrer">
<social.icon className="w-4 h-4" />
</Link>
</Button>
))}
</div>
)
}