/**
* @flow
* @file File Key Values Skill Data component
* @author Box
*/
import React from 'react';
import './Keyvalues.scss';
type Props = {
card: SkillCard,
};
const Keyvalues = ({ card: { entries } }: Props) => (
{Array.isArray(entries) &&
entries.map(
({ label, text }: SkillCardEntry, index) =>
!!label &&
!!text && (
/* eslint-disable react/no-array-index-key */
- {label}
- {text}
),
/* eslint-enable react/no-array-index-key */
)}
);
export default Keyvalues;