diff --git a/app/page.tsx b/app/page.tsx index c06795b886..2aee8e483e 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -4,39 +4,10 @@ import { ChatbotUISVG } from "@/components/icons/chatbotui-svg" import { IconArrowRight } from "@tabler/icons-react" import { useTheme } from "next-themes" import Link from "next/link" -import { useEffect, useState } from "react" export default function HomePage() { const { theme } = useTheme() - const [stars, setStars] = useState(19000) - - useEffect(() => { - getGitHubRepoStars() - }, []) - - const getGitHubRepoStars = async () => { - const url = `https://api.github.com/repos/mckaywrigley/chatbot-ui` - - try { - const response = await fetch(url, { - headers: { - Accept: "application/vnd.github.v3+json" - } - }) - - if (!response.ok) { - throw new Error(`Error: ${response.status}`) - } - - const data = await response.json() - setStars(data.stargazers_count) - } catch (error) { - console.error("Failed to fetch GitHub stars:", error) - return 0 - } - } - return (