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.detail}
{strings.headers[2][1]}
}