import React from 'react';
import PropTypes from 'prop-types';
import Check from '../../../../../images/icons/check';
import styles from './expertion.module.scss';

export default function Expertion({ expertise }) {
  return (
    <>
      {expertise && (
        <div className={styles.expertion}>
          <p>Expert on:</p>
          {expertise?.map((res) => (
            <span>
              <Check />
              {res}
            </span>
          ))}
        </div>
      )}
    </>
  );
}

Expertion.propTypes = {
  expertise: PropTypes.shape(),
};
