feat: add share link to homepage
This commit is contained in:
+2
-1
@@ -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
@@ -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[],
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user