-
-
{group.charAt(0)}
+export const LandingCard = ({
+ group,
+ title,
+ description,
+ icon,
+ onClick,
+ ...props
+}: LandingCardProps) => {
+ const validIcon = icon && icon.length > 0;
+ return (
+
+
+
+
+ {validIcon ? (
+ {group.charAt(0)}
+ ) : (
+ {group.charAt(0)}
+ )}
+ {group}
- {group}
-
-
- {title}
-
- {description}
-
-
-
-
-
-);
+
+ {title}
+
+ {description}
+
+
+
+
+
+ );
+};
export { Card, CardContent, CardHeader };
diff --git a/frontend/packages/core/src/landing.tsx b/frontend/packages/core/src/landing.tsx
index af15832b00..0a5ce86021 100644
--- a/frontend/packages/core/src/landing.tsx
+++ b/frontend/packages/core/src/landing.tsx
@@ -82,6 +82,7 @@ const Landing: React.FC<{}> = () => {
description={workflow.description}
onClick={() => navigateTo(workflow.path)}
key={workflow.path}
+ icon={workflow.icon}
/>
))}