Rev 2937 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
import React from 'react';import { useSelector } from 'react-redux';import Spinner from '@components/UI/Spinner';import EmptySection from '@components/UI/EmptySection';import ProfileItem from '@components/profile/ProfileItem';import ProfileCardsGrid from '@components/UI/ProfileCardsGrid';export default function AppliedJobsList({ jobs = [], loading, onComplete }) {const labels = useSelector(({ intl }) => intl.labels);if (loading) {return <Spinner />;}if (!jobs.length) {return <EmptySection align='left' message={labels.datatable_szerorecords} />;}return (<ProfileCardsGrid>{jobs.map(({ id, title, employment_type, ...rest }) => (<ProfileItemkey={id}name={title}status={employment_type}{...rest}fetchCallback={onComplete}btnAcceptTitle={labels.view_job}btnLeaveTitle={labels.job_request_cancel}btnRemoveLabel={labels.remove_application}/>))}</ProfileCardsGrid>);}