release version 1.8.5

This commit is contained in:
Wildan Nursahidan
2025-05-12 00:17:49 +07:00
parent 2b3949e405
commit 6aeb790cb8
12 changed files with 152 additions and 30 deletions

View File

@@ -30,12 +30,20 @@ export function Footer() {
}
export function FooterButtons() {
const { footer } = docuConfig;
const footer = docuConfig?.footer;
// Jangan render apapun jika tidak ada data sosial
if (!footer?.social || !Array.isArray(footer.social) || footer.social.length === 0) {
return null;
}
return (
<>
{footer.social?.map((item) => {
const IconComponent = (LucideIcons[item.iconName as keyof typeof LucideIcons] ?? LucideIcons["Globe"]) as unknown as React.FC<{ className?: string }>;
{footer.social.map((item) => {
const IconComponent =
(LucideIcons[item.iconName as keyof typeof LucideIcons] ??
LucideIcons["Globe"]) as React.FC<{ className?: string }>;
return (
<Link
key={item.name}