diff --git a/app/components/usage-card.tsx b/app/components/usage-card.tsx index be14ec9..a6bd683 100644 --- a/app/components/usage-card.tsx +++ b/app/components/usage-card.tsx @@ -6,10 +6,11 @@ interface UsageCardProps { label: string, monthlyUsage: number, // Asumming that the minimium is 1GB currentUsage: number, - icon: React.ReactNode + icon: React.ReactNode, + button?: React.ReactNode; } -export const UsageCard = ({ label, monthlyUsage, currentUsage, icon }: UsageCardProps) => { +export const UsageCard = ({ label, monthlyUsage, currentUsage, icon, button }: UsageCardProps) => { return (
@@ -20,10 +21,14 @@ export const UsageCard = ({ label, monthlyUsage, currentUsage, icon }: UsageCard
Montly {label.toLocaleLowerCase()} limit is {monthlyUsage} GB
- + {!button ? ( + + ) : ( + button + )}
@@ -32,4 +37,4 @@ export const UsageCard = ({ label, monthlyUsage, currentUsage, icon }: UsageCard
) -} \ No newline at end of file +}