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 { Progress, Stack, Text } from '@chakra-ui/react';
import { useTranslation } from 'react-i18next';
/** percentage is 0..1 or null for indeterminate; tabular captions prevent live progress from shifting layout. */
export const QueueStepProgress = ({ message, percentage }: { message: string; percentage: number | null }) => {
const { t } = useTranslation();
const percentLabel = percentage !== null ? `${Math.round(percentage * 100)}%` : '';
const caption = [message.trim(), percentLabel].filter(Boolean).join(' · ');
return (
<Stack gap="1.5" w="full">
<Progress.Root
aria-label={t('widgets.queue.itemProgress')}
colorPalette="accent"
max={1}
value={percentage}
w="full"
>
<Progress.Track rounded="full">
<Progress.Range rounded="full" transition="width var(--wb-motion-duration-fast) ease" />
</Progress.Track>
</Progress.Root>
{caption ? (
<Text color="fg.muted" fontSize="xs" fontVariantNumeric="tabular-nums">
{caption}
</Text>
) : null}
</Stack>
);
};