diff --git a/frontend/src/components/tools/compress/CompressSettings.tsx b/frontend/src/components/tools/compress/CompressSettings.tsx index 47ff4189e..d82a99453 100644 --- a/frontend/src/components/tools/compress/CompressSettings.tsx +++ b/frontend/src/components/tools/compress/CompressSettings.tsx @@ -1,7 +1,7 @@ import React, { useState } from "react"; import { Button, Stack, Text, NumberInput, Select, Divider } from "@mantine/core"; import { useTranslation } from "react-i18next"; -import { CompressParameters } from "../../../hooks/tools/compress/useCompressOperation"; +import { CompressParameters } from "../../../hooks/tools/compress/useCompressParameters"; interface CompressSettingsProps { parameters: CompressParameters; diff --git a/frontend/src/components/tools/ocr/AdvancedOCRSettings.tsx b/frontend/src/components/tools/ocr/AdvancedOCRSettings.tsx index 3bd8c1569..a38926edf 100644 --- a/frontend/src/components/tools/ocr/AdvancedOCRSettings.tsx +++ b/frontend/src/components/tools/ocr/AdvancedOCRSettings.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { Stack, Text, Checkbox } from '@mantine/core'; import { useTranslation } from 'react-i18next'; -import { OCRParameters } from './OCRSettings'; +import { OCRParameters } from '../../../hooks/tools/ocr/useOCRParameters'; export interface AdvancedOCRParameters { advancedOptions: string[]; diff --git a/frontend/src/components/tools/ocr/OCRSettings.tsx b/frontend/src/components/tools/ocr/OCRSettings.tsx index 588884889..b4d9aa766 100644 --- a/frontend/src/components/tools/ocr/OCRSettings.tsx +++ b/frontend/src/components/tools/ocr/OCRSettings.tsx @@ -2,13 +2,7 @@ import React from 'react'; import { Stack, Select, Text, Divider } from '@mantine/core'; import { useTranslation } from 'react-i18next'; import LanguagePicker from './LanguagePicker'; - -export interface OCRParameters { - languages: string[]; - ocrType: string; - ocrRenderType: string; - additionalOptions: string[]; -} +import { OCRParameters } from '../../../hooks/tools/ocr/useOCRParameters'; interface OCRSettingsProps { parameters: OCRParameters; @@ -25,7 +19,7 @@ const OCRSettings: React.FC = ({ return ( - +