diff --git a/apps/dashboard/src/app/(app)/team/[team_slug]/layout.tsx b/apps/dashboard/src/app/(app)/team/[team_slug]/layout.tsx index 9cddd883b38..eba7709d06a 100644 --- a/apps/dashboard/src/app/(app)/team/[team_slug]/layout.tsx +++ b/apps/dashboard/src/app/(app)/team/[team_slug]/layout.tsx @@ -1,5 +1,8 @@ import { getTeamBySlug } from "@/api/team"; +import { Button } from "@/components/ui/button"; import { PosthogIdentifierServer } from "components/wallets/PosthogIdentifierServer"; +import { ArrowRightIcon } from "lucide-react"; +import Link from "next/link"; import { redirect } from "next/navigation"; import { Suspense } from "react"; import { EnsureValidConnectedWalletLoginServer } from "../../components/EnsureValidConnectedWalletLogin/EnsureValidConnectedWalletLoginServer"; @@ -28,6 +31,10 @@ export default async function RootTeamLayout(props: { return (
+ {team.billingPlan === "starter_legacy" && ( + + )} + {team.billingStatus === "pastDue" && ( )} @@ -50,3 +57,31 @@ export default async function RootTeamLayout(props: {
); } + +function StarterLegacyDiscontinuedBanner(props: { + teamSlug: string; +}) { + return ( +
+
+

Starter legacy plans are being discontinued on May 31, 2025

+

+ To prevent service interruptions and losing access to your current + features select a new plan +

+ +
+
+ ); +}