import Link from "next/link"; import { ModeToggle } from "@/components/theme-toggle"; import docuConfig from "@/docu.json"; import * as LucideIcons from "lucide-react"; // Import all icons export function Footer() { const { footer } = docuConfig; const { meta } = docuConfig; return ( ); } export function FooterButtons() { 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 React.FC<{ className?: string }>; return ( ); })} > ); } export function MadeWith() { return ( <> Made with DocuBook > ); }