import SectionContainer from '~/components/Layouts/SectionContainer' import type { IconType } from '~/data/solutions/solutions.utils' import React from 'react' import { cn } from 'ui' interface Feature { id: string title: string description: string | React.ReactNode icon: string | IconType iconNoStroke?: boolean className?: string } export interface FeatureGridProps { id: string features: Feature[] heading?: React.ReactNode subheading?: React.ReactNode className?: string } const FeatureGrid = ({ id, features, heading, subheading, className }: FeatureGridProps) => { return ( {(heading || subheading) && (
{heading &&

{heading}

} {subheading &&

{subheading}

}
)}
{features.map((feature) => (
{feature.icon && (typeof feature.icon === 'string' ? ( ) : ( ))}

{feature.title}

{feature.description}

))}
) } export default FeatureGrid