import { ComponentProps, For } from "solid-js" export function Spinner(props: { class?: string; classList?: ComponentProps<"div">["classList"] }) { const squares = Array.from({ length: 16 }, (_, i) => ({ id: i, x: (i % 4) * 4, y: Math.floor(i / 4) * 4, delay: Math.random() * 3, duration: 2 + Math.random() * 2, })) return ( {(square) => ( )} ) }