diff --git a/src/components/shared/InfoBox.tsx b/src/components/shared/InfoBox.tsx index 9b0e11be4..52677cf5d 100644 --- a/src/components/shared/InfoBox.tsx +++ b/src/components/shared/InfoBox.tsx @@ -7,7 +7,7 @@ import { Text } from "@/components/ui/typography"; import { cn } from "@/lib/utils"; interface InfoBoxProps { - title: string; + title?: string; width?: "full" | "fit" | "auto"; className?: string; children: ReactNode; @@ -67,15 +67,17 @@ export const InfoBox = ({ className={cn("border rounded-md p-2", styles.container, widthClass)} > - - {title} - + {title && ( + + {title} + + )} {onDismiss && (