import React from 'react' import { strings } from '@app-strings' import { Link } from '../typo/link' import { SectionContainer } from '../containers/section-container' import { GrAccessibility, GrAggregate, GrCloud, GrCode, GrCompare, GrMoney, GrNotification, GrTime, GrTip, } from 'react-icons/gr' import { Header2, Header3 } from '@app/components/general/header' // todo: remove create Element handling const RenderIcon = ({ index, ...props }: any): any => React.createElement( (() => { let FeatureIcon switch (index) { case 0: FeatureIcon = GrAccessibility break case 1: FeatureIcon = GrNotification break case 2: FeatureIcon = GrTip break case 3: FeatureIcon = GrCloud break case 4: FeatureIcon = GrCode break case 5: FeatureIcon = GrCompare break case 6: FeatureIcon = GrAggregate break case 7: FeatureIcon = GrMoney break case 8: FeatureIcon = GrTime break default: FeatureIcon = 'div' break } return FeatureIcon })(), props ) function FeatureItem({ item, index }: { item: any; index: number }) { return (
{item.title}

{item.detail}

) } // prep slim features trunc const slimFeatures = strings.features.filter((_, i) => { return i < 6 }) const FeaturesList = ({ alternative, all, }: { alternative?: boolean all?: boolean }) => { const featureList = all ? slimFeatures : strings.features return (
{alternative ? ( Some more of the features. ) : ( {strings.headers[2][0]} )} {alternative ? null :

{strings.headers[2][1]}

}
<> {featureList.map((item: any, index: number) => ( ))}
{all ? null : (
Discover more features
)}
) } export { FeaturesList }