diff --git a/web/src/components/card/EmptyCard.tsx b/web/src/components/card/EmptyCard.tsx
index b9943b31a4..5495a6e50c 100644
--- a/web/src/components/card/EmptyCard.tsx
+++ b/web/src/components/card/EmptyCard.tsx
@@ -12,6 +12,7 @@ type EmptyCardProps = {
description?: string;
buttonText?: string;
link?: string;
+ onClick?: () => void;
};
export function EmptyCard({
className,
@@ -21,6 +22,7 @@ export function EmptyCard({
description,
buttonText,
link,
+ onClick,
}: EmptyCardProps) {
let TitleComponent;
@@ -39,11 +41,16 @@ export function EmptyCard({
{description}
)}
- {buttonText?.length && (
-
- )}
+ {buttonText?.length &&
+ (onClick ? (
+
+ ) : (
+
+ ))}
);
}