import { ModeToggle } from "@/mode-toggle"; import { StarIcon } from "lucide-react"; import { Button } from "./ui/button"; import { useEffect, useState } from "react"; import DokployLogo from "./ui/dokploy-logo"; const Navigation = () => { const [githubStars, setGithubStars] = useState(0); useEffect(() => { const fetchGithubStars = async () => { try { const response = await fetch( "https://api.github.com/repos/dokploy/dokploy" ); const data = await response.json(); setGithubStars(data.stargazers_count); } catch (error) { console.error("Error fetching GitHub stars:", error); } }; fetchGithubStars(); }, [setGithubStars]); return (

Dokploy Templates

); }; export default Navigation;