66} from "fumadocs-ui/page" ;
77
88import { FaqAccordion , FaqItem } from "@/components/faq-accordion" ;
9+ import Link from "fumadocs-core/link" ;
10+ import { FileQuestionMark } from "lucide-react" ;
911
1012const items : FaqItem [ ] = [
1113 {
@@ -18,11 +20,15 @@ const items: FaqItem[] = [
1820 title :
1921 "Is Nativewind v5 out yet" ,
2022 content :
21- "not yet" ,
23+ (
24+ < >
25+ not yet, check out < Link href = "/v5/faq" className = "underline text-amber-500 hover:text-amber-600 dark:hover:text-amber-400" > the v5 FAQ</ Link > for more info.
26+ </ >
27+ ) ,
2228 } ,
2329] ;
2430
25- export default async function Page ( ) {
31+ export default async function FAQPage ( ) {
2632 return (
2733 < >
2834 < div className = "absolute inset-0 -z-10 w-full h-full pointer-events-none overflow-x-clip" >
@@ -32,17 +38,21 @@ export default async function Page() {
3238 </ div >
3339
3440 < DocsPage >
35- < div className = "flex items-center justify-between mb-4 md:max-xl:px-12" >
41+ < div className = "flex justify-between mb-4 md:max-xl:px-12" >
3642 < div className = "flex-1" >
3743 < DocsTitle > FAQ</ DocsTitle >
38- < DocsDescription className = "!mb-0" > Frequently answered questions</ DocsDescription >
44+ < DocsDescription className = "!mb-0 text-balance" > Frequently answered questions</ DocsDescription >
45+ </ div >
46+ < div className = "flex items-start md:items-center gap-2" >
47+ < Link href = "/v5/faq" className = "inline-flex items-center gap-2 px-3 py-1.5 text-sm font-medium text-fd-muted-foreground hover:text-amber-500 bg-fd-card border border-fd-border hover:border-amber-500/30 rounded-md hover:bg-amber-500/10 transition-colors" >
48+ < FileQuestionMark className = "size-4" />
49+ v5
50+ </ Link >
3951 </ div >
4052 </ div >
41- { /* TODO: redo FAQAccordion to accept children instead of items and make this a normal mdx page */ }
4253 < div className = "md:max-xl:px-12" >
4354 < FaqAccordion items = { items } />
4455 </ div >
45- { /* <FooterSection /> */ }
4656 </ DocsPage >
4757 </ >
4858 ) ;
0 commit comments