- {isLoading ? (
-
- {Array.from({ length: 4 }).map((_, i) => (
-
- ))}
-
- ) : (
-
- {(articles || []).flatMap((article, index) => {
- const items = [
-
,
- ];
- if (index === 1) {
- items.push(
);
- }
- if (index === 4) {
- items.push(
);
- }
- return items;
- })}
-
- )}
+ {row2Items.length > 0 && (
+
+ {row2Items.map((a) => (
+
+ ))}
+
+ )}
-
- {popular && popular.length > 0 && (
-
- )}
-
+ {row3Items.length > 0 && (
+
+
+ {row3Items[0] && }
+
+
+ {row3Items.slice(1, 3).map((a) => (
+
+ ))}
+ {row3Items.slice(3).map((a) => (
+
+ ))}
+
+
-
+ )}
+