import { ComponentProps, For } from "solid-js" const outerIndices = new Set([1, 2, 4, 7, 8, 11, 13, 14]) const cornerIndices = new Set([0, 3, 12, 15]) const squares = Array.from({ length: 16 }, (_, i) => ({ id: i, x: (i % 4) * 4, y: Math.floor(i / 4) * 4, delay: Math.random() * 1.5, duration: 1 + Math.random() * 1, outer: outerIndices.has(i), corner: cornerIndices.has(i), })) export function Spinner(props: { class?: string classList?: ComponentProps<"div">["classList"] style?: ComponentProps<"div">["style"] }) { return ( {(square) => ( )} ) }