11import type { SidebarLink } from "@/components/blocks/Sidebar" ;
22import { SidebarLayout } from "@/components/blocks/SidebarLayout" ;
3+ import { Alert , AlertDescription , AlertTitle } from "@/components/ui/alert" ;
4+ import { Badge } from "@/components/ui/badge" ;
5+ import { Button } from "@/components/ui/button" ;
36import { CloudIcon } from "lucide-react" ;
47import Link from "next/link" ;
5- import { Badge } from "../../../../../../../../@/components/ui/badge" ;
6- import { Button } from "../../../../../../../../@/components/ui/button" ;
78import { ImportEngineLink } from "./_components" ;
89
910export default async function Layout ( props : {
@@ -42,17 +43,16 @@ export default async function Layout(props: {
4243 </ p >
4344 </ div >
4445 < div className = "flex items-center gap-3" >
45- < Link href = { `/team/${ params . team_slug } ` } >
46- < Button variant = { "upsell" } >
47- < CloudIcon className = "mr-2 h-4 w-4" /> Try Engine Cloud for Free
48- </ Button >
49- </ Link >
5046 < ImportEngineLink
5147 label = "Import Engine"
5248 engineLinkPrefix = { linkPrefix }
5349 />
5450 </ div >
5551 </ div >
52+ < div className = "h-6" />
53+ < div className = "container" >
54+ < EngineLegacyBannerUI teamSlug = { params . team_slug } />
55+ </ div >
5656 </ header >
5757
5858 { /* sidebar layout */ }
@@ -62,3 +62,39 @@ export default async function Layout(props: {
6262 </ div >
6363 ) ;
6464}
65+
66+ function EngineLegacyBannerUI ( props : {
67+ teamSlug : string ;
68+ } ) {
69+ return (
70+ < Alert variant = "info" >
71+ < CloudIcon className = "size-5" />
72+ < AlertTitle > Engine Cloud (Beta)</ AlertTitle >
73+ < AlertDescription >
74+ < div className = "h-2" />
75+ < p className = "text-primary-foreground text-sm" >
76+ Try Engine Cloud (Beta) - now included for free in every thirdweb
77+ project.
78+ </ p >
79+ < div className = "h-2" />
80+ < ul className = "list-disc pl-4 text-muted-foreground text-sm" >
81+ < li > No recurring monthly cost, pay-per-request model</ li >
82+ < li > Powered by Vault: our new TEE based key management system</ li >
83+ < li > Improved performance and simplified transaction API</ li >
84+ </ ul >
85+ < div className = "h-4" />
86+ < div className = "flex justify-end gap-2" >
87+ < Link
88+ href = { `https://portal.thirdweb.com/engine/cloud` }
89+ target = "_blank"
90+ >
91+ < Button variant = "outline" > Learn More</ Button >
92+ </ Link >
93+ < Link href = { `/team/${ props . teamSlug } ` } >
94+ < Button variant = { "primary" } > Create a Project</ Button >
95+ </ Link >
96+ </ div >
97+ </ AlertDescription >
98+ </ Alert >
99+ ) ;
100+ }
0 commit comments