"use client"; import { motion } from "framer-motion"; import { useState } from "react"; import { Star } from "@/types/space" export default function Starfield() { const [stars] = useState(() => Array.from({ length: 80 }).map((_, i) => ({ id: i, left: `${Math.random() * 100}%`, top: `${Math.random() * 100}%`, size: Math.random() * 2 + 1, duration: 2 + Math.random() * 3, delay: Math.random() * 5, })) ); return (
{stars.map((star) => ( ))}
); }