import { GoPrimitiveDot } from 'react-icons/go'; import { skeleton } from '../../helpers/utils'; import config from '../../ezprofile.config'; import { Fragment } from 'react'; const Experience = ({ loading }) => { const renderSkeleton = () => { let array = []; for (let index = 0; index < 2; index++) { array.push(
  • {skeleton({ width: 'w-5/12', height: 'h-4', })}

    {skeleton({ width: 'w-6/12', height: 'h-4', className: 'my-1.5', })}

    {skeleton({ width: 'w-6/12', height: 'h-3' })}

  • ); } return array; }; return ( <> {typeof config.experiences !== 'undefined' && config.experiences.length !== 0 && (
    {loading ? ( skeleton({ width: 'w-32', height: 'h-8' }) ) : ( Experience )}
      {loading ? ( renderSkeleton() ) : ( {config.experiences.map((experience, index) => (
    1. {experience.from} - {experience.to}

      {experience.position}

      {experience.company}

    2. ))}
      )}
    )} ); }; export default Experience;