import React from 'react' import { cn } from 'ui' import SectionContainer from '~/components/Layouts/SectionContainer' interface Feature { id?: string title: string subheading: string | React.ReactNode highlights?: string | React.ReactNode url?: string icon?: string | React.ReactNode image?: any className?: string onClick?: any alignLeft?: boolean isDatabase?: boolean } export interface PlatformSectionProps { id?: string title: string | React.ReactNode subheading: string features?: Feature[] className?: string } const PlatformSection = ({ title, subheading, features, id, className }: PlatformSectionProps) => { return (

{title}

{subheading}

{features?.map((feature) => ( ))}
) } const FeatureCard = ({ feature }: { feature: Feature }) => { const { alignLeft = true } = feature return (
{feature.icon && (typeof feature.icon === 'string' ? ( ) : ( feature.icon ))}

{feature.title}

{feature.subheading}

{feature.highlights && ( {feature.highlights} )}
{feature.image && feature.image}
) } export default PlatformSection