{messages.map((messageCount, groupIndex) => {
const attachmentSpec = attachmentSpecs[groupIndex];
const baseSeed = (groupIndex + 1) * 17;
const usernameWidth = 48 + seededRandom(baseSeed) * 36;
const timestampWidth = 8 + seededRandom(baseSeed + 3) * 12;
return (
{Array.from({length: messageCount}).map((_, lineIndex) => {
const lineSeed = baseSeed + lineIndex * 11;
const baseWidth = 75;
const variance = 18;
const width = baseWidth + seededRandom(lineSeed) * variance;
return (
);
})}
{attachmentSpec && (
)}
);
})}
);
}),
);
export default ScrollFillerSkeleton;