import useEmbedJobs from '~/hooks/useEmbedJobs' import HorizontalBarChart from './HorizontalBarChart' import StyledSectionHeader from './StyledSectionHeader' import { useTranslation } from 'react-i18next' interface ActiveEmbedJobsProps { withHeader?: boolean } const ActiveEmbedJobs = ({ withHeader = false }: ActiveEmbedJobsProps) => { const { t } = useTranslation() const { data: jobs } = useEmbedJobs() return ( <> {withHeader && ( )}
{jobs && jobs.length > 0 ? ( jobs.map((job) => (
)) ) : (

{t('common.noFilesProcessing')}

)}
) } export default ActiveEmbedJobs