@@ -4,63 +4,63 @@ import { cn } from "../../lib/utils";
44import { Button } from "../ui/button" ;
55
66export function PageHeader ( props : {
7- title : string ;
8- description : React . ReactNode ;
9- docsLink : string ;
7+ title : string ;
8+ description : React . ReactNode ;
9+ docsLink : string ;
1010} ) {
11- return (
12- < div className = "mb-8 border-b py-10" >
13- < div className = "container grid grid-cols-1 items-start justify-between gap-6 lg:grid-cols-[1fr_340px] lg:flex-row" >
14- { /* Left */ }
15- < div >
16- < h1 className = "mb-1 font-bold text-3xl tracking-tight lg:text-4xl" >
17- { props . title }
18- </ h1 >
19- < p className = "text-balance text-base text-muted-foreground" >
20- { props . description }
21- </ p >
22- </ div >
11+ return (
12+ < div className = "mb-8 border-b py-10" >
13+ < div className = "container grid grid-cols-1 items-start justify-between gap-6 lg:grid-cols-[1fr_340px] lg:flex-row" >
14+ { /* Left */ }
15+ < div >
16+ < h1 className = "mb-1 font-bold text-3xl tracking-tight lg:text-4xl" >
17+ { props . title }
18+ </ h1 >
19+ < p className = "text-balance text-base text-muted-foreground" >
20+ { props . description }
21+ </ p >
22+ </ div >
2323
24- { /* right */ }
25- < div className = "flex flex-col gap-3 md:flex-row" >
26- < Button asChild >
27- < Link target = "_blank" href = { "https://thirdweb.com/dashboard?utm_source=playground" } >
28- < PresentationIcon className = "mr-2 h-4 w-4" />
29-
30- Add instantly
31- </ Link >
32- </ Button >
33- < Button asChild variant = "outline" className = "bg-card" >
34- < Link
35- target = "_blank" href = { props . docsLink }
36- >
37- < BookOpenIcon className = "mr-2 h-4 w-4" />
38- Documentation
39- </ Link >
40- </ Button >
41- </ div >
42- </ div >
43- </ div >
44- ) ;
24+ { /* right */ }
25+ < div className = "flex flex-col gap-3 md:flex-row" >
26+ < Button asChild >
27+ < Link
28+ target = "_blank"
29+ href = { "https://thirdweb.com/dashboard?utm_source=playground" }
30+ >
31+ < PresentationIcon className = "mr-2 h-4 w-4" / >
32+ Add instantly
33+ </ Link >
34+ </ Button >
35+ < Button asChild variant = "outline" className = "bg-card" >
36+ < Link target = "_blank" href = { props . docsLink } >
37+ < BookOpenIcon className = "mr-2 h-4 w-4" />
38+ Documentation
39+ </ Link >
40+ </ Button >
41+ </ div >
42+ </ div >
43+ </ div >
44+ ) ;
4545}
4646
4747export function PageLayout ( props : {
48- title : string ;
49- description : React . ReactNode ;
50- docsLink : string ;
51- children : React . ReactNode ;
52- containerClassName ?: string ;
48+ title : string ;
49+ description : React . ReactNode ;
50+ docsLink : string ;
51+ children : React . ReactNode ;
52+ containerClassName ?: string ;
5353} ) {
54- return (
55- < main >
56- < PageHeader
57- title = { props . title }
58- description = { props . description }
59- docsLink = { props . docsLink }
60- />
61- < div className = { cn ( "container pb-8" , props . containerClassName ) } >
62- { props . children }
63- </ div >
64- </ main >
65- ) ;
54+ return (
55+ < main >
56+ < PageHeader
57+ title = { props . title }
58+ description = { props . description }
59+ docsLink = { props . docsLink }
60+ />
61+ < div className = { cn ( "container pb-8" , props . containerClassName ) } >
62+ { props . children }
63+ </ div >
64+ </ main >
65+ ) ;
6666}
0 commit comments