+
}
+ disabled={!renders.length}
+ onClick={async () => {
+ setShow(true)
+ setGifImg(null)
+ try {
+ const gif = await makeGif(
+ file,
+ renders[renders.length - 1],
+ file.name,
+ file.type
+ )
+ if (gif) {
+ setGifImg(gif)
+ }
+ } catch (e: any) {
+ setToastState({
+ open: true,
+ desc: e.message ? e.message : e.toString(),
+ state: 'error',
+ duration: 2000,
+ })
+ }
+ }}
+ />
+
+
+ {gifImg ? (
+

+ ) : (
+
+
+ Generating GIF...
+
+ )}
+
+ {gifImg && (
+
+
+
+ )}
+
+
+
+ )
+}
+
+export default MakeGIF
diff --git a/lama_cleaner/app/src/components/Settings/SettingIcon.tsx b/lama_cleaner/app/src/components/Settings/SettingIcon.tsx
index 70b80cf..20cf4af 100644
--- a/lama_cleaner/app/src/components/Settings/SettingIcon.tsx
+++ b/lama_cleaner/app/src/components/Settings/SettingIcon.tsx
@@ -1,5 +1,6 @@
import React from 'react'
import { useRecoilState } from 'recoil'
+import { Cog6ToothIcon } from '@heroicons/react/24/outline'
import { settingState } from '../../store/Atoms'
import Button from '../shared/Button'
@@ -16,29 +17,7 @@ const SettingIcon = () => {
onClick={onClick}
toolTip="Settings"
style={{ border: 0 }}
- icon={
-