Files
InvokeAI/invokeai/frontend/web/src/features/queue/components/QueueTabContent.tsx
psychedelicious 189c430e46 chore(ui): format
Lots of changed bc the line length is now 120. May as well do it now.
2024-01-28 19:57:53 +11:00

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);