File size: 586 Bytes
8a37e0a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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);