import { useEffect, useState } from "react"; import Marquee from "react-fast-marquee"; import pasta from "./pasta.ts"; import style from "./style.module.css"; export default function Footer() { const [index, setIndex] = useState(0); // random shitpost every minute useEffect(() => { const timer = setInterval(() => { setIndex(Math.floor(Math.random() * pasta.length)); console.log("sus!"); }, 60 * 1000); return () => { clearInterval(timer); }; }, []); const text = pasta[index]; return (
Start