import Image from "next/image"; import Shrimp from "./shrimp.png"; export function ShrimpRain({ randomValues }: { randomValues: number[] }) { const maxWidthToShrimp = randomValues.length; const shrimpImagesArray = Array.from(Array(maxWidthToShrimp).keys()); const shrimpImagesArrayElements = shrimpImagesArray.map((index) => { const left = "left-[" + (index + 1) + "%]"; const bottom = "bottom-[" + randomValues[index] + "%]"; return ( 3D modeled shrimp ); }); return (
{shrimpImagesArrayElements}
); }