From e07180b61cdd76070a06e77f877258cc2d7aeca9 Mon Sep 17 00:00:00 2001 From: Arhan Ansari Date: Tue, 8 Oct 2024 01:43:41 +0530 Subject: [PATCH 1/3] Update page.tsx --- app/dashboard/page.tsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/app/dashboard/page.tsx b/app/dashboard/page.tsx index 2057971..b3a1592 100644 --- a/app/dashboard/page.tsx +++ b/app/dashboard/page.tsx @@ -12,6 +12,7 @@ import { checkUserPlanLimit, getUserData, incrementRequestCount } from "@/fireba import { DocumentData } from "firebase/firestore"; import MarkdownRenderer from "@/components/MarkdownRenderer"; import { StarIcon } from "@heroicons/react/24/solid"; +import { BadgeCheckIcon } from "@heroicons/react/24/outline"; // Plan badge icons import SEO from "@/components/SEO"; export default function Dashboard() { @@ -120,8 +121,19 @@ export default function Dashboard() { return (
-

Welcome to the Dashboard, {session?.user?.name}

+ + {/* Personalized Greeting with Plan Badge */} +

+ Welcome to the Dashboard, {session?.user?.name} +

+
+ + + Your current plan: {userPlan === "free" ? "Free Plan" : userPlan === "pro" ? "Pro Plan" : "Enterprise Plan"} + +
+ {/* AI Content Generator Section */}

AI Content Generator