-
-
- {title}
-
-
- {description && (
-
- {description}
-
- )}
-
+
+ {children}
+
{timeline.length > 0 && (
& {
export const SectionHeader: React.FC<
React.PropsWithChildren
> = ({ title, description, className, children, ...props }) => {
+ const withDescription = !!description
+
return (
-
+
{title}
- {children && (
+ {!withDescription && children && (
{children}
)}
@@ -32,6 +41,7 @@ export const SectionHeader: React.FC<
variant="h3"
>
{description}
+ {{children}
}
)}