From eab8ec3ba81b86fdd4ade920d999c28fb34785b1 Mon Sep 17 00:00:00 2001 From: Hyteq Date: Sun, 20 Jul 2025 10:48:40 +0300 Subject: format, cleanup, deps --- apps/web/src/components/header.tsx | 140 ++++++++++++++++++------------------- 1 file changed, 70 insertions(+), 70 deletions(-) (limited to 'apps/web/src/components/header.tsx') diff --git a/apps/web/src/components/header.tsx b/apps/web/src/components/header.tsx index bfe314d6..a52ca4c7 100644 --- a/apps/web/src/components/header.tsx +++ b/apps/web/src/components/header.tsx @@ -1,70 +1,70 @@ -"use client"; - -import Link from "next/link"; -import { Button } from "./ui/button"; -import { ArrowRight } from "lucide-react"; -import { HeaderBase } from "./header-base"; -import { useSession } from "@opencut/auth/client"; -import { getStars } from "@/lib/fetch-github-stars"; -import { useEffect, useState } from "react"; -import Image from "next/image"; - -export function Header() { - const { data: session } = useSession(); - const [star, setStar] = useState(""); - - useEffect(() => { - const fetchStars = async () => { - try { - const data = await getStars(); - setStar(data); - } catch (err) { - console.error("Failed to fetch GitHub stars", err); - } - }; - - fetchStars(); - }, []); - - const leftContent = ( - - OpenCut Logo - OpenCut - - ); - - const rightContent = ( - - ); - - return ( -
- -
- ); -} +"use client"; + +import Link from "next/link"; +import { Button } from "./ui/button"; +import { ArrowRight } from "lucide-react"; +import { HeaderBase } from "./header-base"; +import { useSession } from "@opencut/auth/client"; +import { getStars } from "@/lib/fetch-github-stars"; +import { useEffect, useState } from "react"; +import Image from "next/image"; + +export function Header() { + const { data: session } = useSession(); + const [star, setStar] = useState(""); + + useEffect(() => { + const fetchStars = async () => { + try { + const data = await getStars(); + setStar(data); + } catch (err) { + console.error("Failed to fetch GitHub stars", err); + } + }; + + fetchStars(); + }, []); + + const leftContent = ( + + OpenCut Logo + OpenCut + + ); + + const rightContent = ( + + ); + + return ( +
+ +
+ ); +} -- cgit v1.3.1