mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-04 00:44:58 -05:00
28 lines
910 B
TypeScript
28 lines
910 B
TypeScript
import { Box, Flex } from '@invoke-ai/ui-library';
|
|
import { useFeatureStatus } from 'features/system/hooks/useFeatureStatus';
|
|
import { memo } from 'react';
|
|
|
|
import InvocationCacheStatus from './InvocationCacheStatus';
|
|
import QueueList from './QueueList/QueueList';
|
|
import QueueStatus from './QueueStatus';
|
|
import QueueTabQueueControls from './QueueTabQueueControls';
|
|
|
|
const QueueTabContent = () => {
|
|
const isInvocationCacheEnabled = useFeatureStatus('invocationCache').isFeatureEnabled;
|
|
|
|
return (
|
|
<Flex borderRadius="base" w="full" h="full" flexDir="column" gap={2}>
|
|
<Flex gap={2} w="full">
|
|
<QueueTabQueueControls />
|
|
<QueueStatus />
|
|
{isInvocationCacheEnabled && <InvocationCacheStatus />}
|
|
</Flex>
|
|
<Box layerStyle="first" p={2} borderRadius="base" w="full" h="full">
|
|
<QueueList />
|
|
</Box>
|
|
</Flex>
|
|
);
|
|
};
|
|
|
|
export default memo(QueueTabContent);
|