import React, { forwardRef } from "react"; import { ProblemSectionProps } from "../../types"; export const ProblemSection = forwardRef( ( { className = "", title = "Common Problems We Solve", subtitle = "Identify the challenges that our solution addresses", problems = [ { title: "Complex Setup", description: "Setting up authentication and UI components from scratch takes too much time.", }, { title: "Poor User Experience", description: "Inconsistent design patterns lead to confusing user interfaces.", }, { title: "Security Concerns", description: "Implementing secure authentication without proper expertise is risky.", }, ], variant = "grid", children, ...props }, ref ) => { return (

{title}

{subtitle && (

{subtitle}

)}
{problems.map((problem, index) => (
{problem.icon && (
{problem.icon}
)}

{problem.title}

{problem.description}

))}
{children}
); } ); ProblemSection.displayName = "ProblemSection";