Files
InvokeAI/invokeai/frontend/web/src/features/queue/components/ClearInvocationCacheButton.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

18 lines
586 B
TypeScript

import { Button } from '@invoke-ai/ui-library';
import { useClearInvocationCache } from 'features/queue/hooks/useClearInvocationCache';
import { memo } from 'react';
import { useTranslation } from 'react-i18next';
const ClearInvocationCacheButton = () => {
const { t } = useTranslation();
const { clearInvocationCache, isDisabled, isLoading } = useClearInvocationCache();
return (
<Button isDisabled={isDisabled} isLoading={isLoading} onClick={clearInvocationCache}>
{t('invocationCache.clear')}
</Button>
);
};
export default memo(ClearInvocationCacheButton);