chore: add email to footer social config

This commit is contained in:
javayhu 2025-06-15 00:44:41 +08:00
parent 02b5ee1727
commit 3136766a6d

View File

@ -12,6 +12,7 @@ import { TikTokIcon } from '@/components/icons/tiktok';
import { XTwitterIcon } from '@/components/icons/x';
import { YouTubeIcon } from '@/components/icons/youtube';
import type { MenuItem } from '@/types';
import { MailIcon } from 'lucide-react';
import { websiteConfig } from './website';
/**
@ -115,5 +116,13 @@ export function getSocialLinks(): MenuItem[] {
});
}
if (websiteConfig.mail.supportEmail) {
socialLinks.push({
title: 'Email',
href: `mailto:${websiteConfig.mail.supportEmail}`,
icon: <MailIcon className="size-4 shrink-0" />,
});
}
return socialLinks;
}