Block Editor
Preview
Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import
{
Button
}
from
"@/components/ui/button"
import
{
LinkType
,
IconType
}
from
"@/types"
import
type
{
VariantProps
}
from
"class-variance-authority"
import
{
buttonVariants
}
from
"@/components/ui/button"
interface
Props
{
title
:
string
description
:
string
button
:
{
label
:
string
link
:
LinkType
variant?:
VariantProps
<
typeof
buttonVariants
>
[
"variant"
]
icon?:
IconType
}
items
:
{
question
:
string
answer
:
string
}
[
]
}
export
default
function
Faq3
(
{
title
,
description
,
button
,
items
}
:
Props
)
{
return
(
<
section className
=
"bg-background py-24"
>
<
div className
=
"container"
>
<
div className
=
"mx-auto max-w-3xl text-center"
>
<
h2 className
=
"text-4xl font-bold tracking-tight sm:text-5xl"
>
{
title
}
</
h2
>
<
p className
=
"mt-6 text-lg text-muted-foreground"
>
{
description
}
</
p
>
Problems
No issues found