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
54 lines (51 loc) · 1.68 KB
/
Copy pathsocials.tsx
File metadata and controls
54 lines (51 loc) · 1.68 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
45
46
47
48
49
50
51
52
53
54
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)}>
<Button
variant="outline"
asChild
className="h-10 text-muted-foreground hover:bg-indigo-500 hover:text-white"
>
<Link href="https://github.com/CopilotKit/CopilotKit/issues/new/choose" target="_blank" rel="noopener noreferrer">
<FaEdit className="w-4 h-4 mr-2" />
Feedback
</Link>
</Button>
{socials.map((social, index) => (
<Button
key={index} // Add a unique key here
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>
)
}