import useScreenSize from "@/hooks/use-screen-size" import Gravity, { MatterBody, } from "@/fancy/components/physics/cursor-attractor-and-gravity" export default function Preview() { const screenSize = useScreenSize() const getImageCount = () => { if (screenSize.lessThan("sm")) return 50 if (screenSize.lessThan("md")) return 60 if (screenSize.lessThan("lg")) return 70 return 80 } const getMaxSize = () => { if (screenSize.lessThan("sm")) return 40 if (screenSize.lessThan("md")) return 50 return 60 } const getMinSize = () => { if (screenSize.lessThan("sm")) return 10 if (screenSize.lessThan("md")) return 20 return 20 } return (

join the community

{[...Array(getImageCount())].map((_, i) => { const size = Math.max(getMinSize(), Math.random() * getMaxSize()) return ( {`Avatar ) })}
) }