Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
import { refreshInstalls } from '@features/models/data/installsStore';
import { ManagerQueueTable } from '@platform/ui/ManagerQueue';
import { DownloadIcon } from 'lucide-react';
import { useTranslation } from 'react-i18next';
/* eslint-disable react-perf/jsx-no-new-function-as-prop, react-perf/jsx-no-new-object-as-prop */
import type { InstallQueueRow } from './queueModel';
import { InstallJobRow } from './InstallJobRow';
export const InstallQueueTable = ({
error,
rows,
status,
}: {
error: string | null;
rows: InstallQueueRow[];
status: 'idle' | 'loading' | 'loaded' | 'error';
}) => {
const { t } = useTranslation();
return (
<ManagerQueueTable
emptyDescription={t('models.noInstallsDescription')}
emptyIcon={DownloadIcon}
emptyTitle={t('models.noInstallsYet')}
isEmpty={rows.length === 0}
isLoading={status === 'loading' || status === 'idle'}
label={t('models.installJobs')}
loadError={
status === 'error'
? { description: error, onRetry: () => void refreshInstalls(), title: t('models.couldNotLoadInstallQueue') }
: null
}
>
{rows.map((row) => (
<InstallJobRow key={row.job.id} row={row} />
))}
</ManagerQueueTable>
);
};