import React from 'react' import { Ul, Li } from '../components/list' import models from '../../meta/languages.json' /** * Compute the overall total counts of models and languages */ function getCounts(langs = []) { return { langs: langs.length, modelLangs: langs.filter(({ models }) => models && !!models.length).length, models: langs.map(({ models }) => (models ? models.length : 0)).reduce((a, b) => a + b, 0), } } const Features = () => { const counts = getCounts(models.languages) return ( ) } export default Features