feat: add share link to homepage

This commit is contained in:
2026-08-16 01:07:05 +07:00 Unverified
parent 5c8ab1c9bf
commit 96b0771ad0
2 changed files with 9 additions and 2 deletions
+2 -1
View File
@@ -7,7 +7,7 @@ import Link from "next/link";
import { Finger_Paint } from "next/font/google";
import { getFollowerCounts } from "@/lib/followers";
import { headers } from "next/headers";
import { Trophy, Users } from "lucide-react";
import { Share2, Trophy, Users } from "lucide-react";
import { Kbd } from "@/components/ui/kbd";
import Background from "@/public/background/space.webp";
import { trackUniqueVisitor } from "@/lib/visitor/unique-visitors";
@@ -39,6 +39,7 @@ const iconMap: Record<IconName, ComponentType<SVGProps<SVGSVGElement>>> = {
form: FormIcon,
donate: DonateIcon,
leaderboard: Trophy,
share: Share2,
};
function LinkList({
+7 -1
View File
@@ -1,4 +1,4 @@
export type IconName = "roblox" | "discord" | "tiktok" | "youtube" | "form" | "donate" | "leaderboard";
export type IconName = "roblox" | "discord" | "tiktok" | "youtube" | "form" | "donate" | "leaderboard" | "share";
export interface LinkConfig {
name: string;
@@ -70,6 +70,12 @@ export const config = {
link: "/leaderboard/xp",
desc: "อันดับ XP และเวลาในห้องเสียง",
icon: "leaderboard",
},
{
name: "Share",
link: "/share",
desc: "วางข้อความและสร้างลิงก์แชร์",
icon: "share",
}
] as LinkConfig[],
};