getTotalSize = children => {
	let size = 0;
	for (const child of children) {
		size += getItemSize(child);
	}
	return size;
}
@template T
@param {Children<T>[]} children children
@returns {number} total size