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 { useResumeProcessor } from 'features/queue/hooks/useResumeProcessor';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
import { PiPlayFill } from 'react-icons/pi';
import QueueButton from './common/QueueButton';
type Props = {
asIconButton?: boolean;
};
const ResumeProcessorButton = ({ asIconButton }: Props) => {
const { t } = useTranslation();
const resumeProcessor = useResumeProcessor();
return (
<QueueButton
asIconButton={asIconButton}
label={t('queue.resume')}
tooltip={t('queue.resumeTooltip')}
isDisabled={resumeProcessor.isDisabled}
isLoading={resumeProcessor.isLoading}
icon={<PiPlayFill />}
onClick={resumeProcessor.trigger}
colorScheme="green"
/>
);
};
export default memo(ResumeProcessorButton);