src/registry/blocks/shared/faq-05/components/faq.tsx
import {
BadgeDollarSign,
Route,
ShieldCheck,
Truck,
Undo2,
UserRoundCheck,
} from "lucide-react";
const faq = [
{
icon: Undo2,
question: "What is your return policy?",
answer:
"You can return unused items in their original packaging within 30 days for a refund or exchange. Contact support for assistance.",
},
{
icon: Route,
question: "How do I track my order?",
answer:
"Track your order using the link provided in your confirmation email, or log into your account to view tracking details.",
},
{
icon: Truck,
question: "Do you ship internationally?",
answer:
"Yes, we ship worldwide. Shipping fees and delivery times vary by location, and customs duties may apply for some countries.",
},
{
icon: BadgeDollarSign,
question: "What payment methods do you accept?",
answer:
"We accept Visa, MasterCard, American Express, PayPal, Apple Pay, and Google Pay, ensuring secure payment options for all customers.",
},
{
icon: ShieldCheck,
question: "What if I receive a damaged item?",
answer:
"Please contact our support team within 48 hours of delivery with photos of the damaged item. We’ll arrange a replacement or refund.",
},
{
icon: UserRoundCheck,
question: "How can I contact customer support?",
answer:
"Reach out via email at support@example.com or call us at 1-800-123-4567 for assistance with any inquiries.",
},
];
const FAQ = () => {
return (
<div className="flex min-h-screen items-center justify-center px-6 py-20">
<div className="max-w-(--breakpoint-lg)">
<h2 className="text-center font-medium text-[2.4rem]/snug tracking-tighter">
Your questions, answered
</h2>
<p className="mt-2 text-center text-muted-foreground text-xl md:text-2xl md:tracking-[-0.015em]">
Quick answers to common product and service questions
</p>
<div className="mt-12 grid gap-px overflow-hidden rounded-xl border border-border/85 bg-border/85 shadow-xs/3 sm:mt-16 md:grid-cols-2">
{faq.map(({ question, answer, icon: Icon }) => (
<div className="flex items-start gap-4 bg-card p-6" key={question}>
<div className="flex size-9 shrink-0 items-center justify-center rounded-full bg-foreground/5">
<Icon className="size-5" />
</div>
<div>
<div className="mt-1 mb-2 flex items-start gap-2 text-[1.2rem] tracking-[-0.01em]">
<span className="font-medium">{question}</span>
</div>
<p className="text-foreground/70">{answer}</p>
</div>
</div>
))}
</div>
</div>
</div>
);
};
export default FAQ;




























