"use client"; import Image from "next/image"; import { useRef, useState } from "react"; import { Card, Typography } from "poyraz-ui/atoms"; import { NewsCard } from "poyraz-ui/molecules"; import { HOME_NEWS } from "@/lib/home-news"; export function HomeHero() { const [frame, setFrame] = useState<1 | 2>(1); const intervalRef = useRef | null>(null); const handleMouseEnter = () => { if (intervalRef.current) return; intervalRef.current = setInterval(() => { setFrame((prev) => (prev === 1 ? 2 : 1)); }, 260); }; const handleMouseLeave = () => { if (intervalRef.current) { clearInterval(intervalRef.current); intervalRef.current = null; } setFrame(1); }; return (
{HOME_NEWS.map((item) => ( ))}
Poyraz Avsever
A young person exploring technology.
Poyraz Avsever
); }