mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-04 22:15:08 -05:00
18 lines
586 B
TypeScript
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);
|