+ {isBiggerHeading(titleAs, pretitleAs) ? (
+ <>
+ {title && (
+
+
+ {title}
+
+
+ )}
+ {headline && (
+ // assuming that the headline will always be followed by one of: pretitle, title, subtitle, description
+
+ {typeof headline === 'string' ? {headline} : headline}
+
+ )}
+ {pretitle && (
+
+
+ {pretitle}
+
+
+ )}
+ >
+ ) : (
+ <>
+ {pretitle && (
+
+
+ {pretitle}
+
+
+ )}
+ {headline && (
+ // assuming that the headline will always be followed by one of: pretitle, title, subtitle, description
+
+ {typeof headline === 'string' ? {headline} : headline}
+
+ )}
+ {title && (
+
+
+ {title}
+
+
+ )}
+ >
+ )}
+ {subtitle && (
+
+
+ {subtitle}
+
+
)}
-
-
- {title}
-
-
- {subtitle}
-
{description && (
)}
-
+
);
};
@@ -246,7 +291,7 @@ export const AdvancedDataCard = React.forwardRef