diff --git a/frontend/src/components/tools/split/SplitAutomationSettings.tsx b/frontend/src/components/tools/split/SplitAutomationSettings.tsx new file mode 100644 index 000000000..a6ad634e5 --- /dev/null +++ b/frontend/src/components/tools/split/SplitAutomationSettings.tsx @@ -0,0 +1,62 @@ +/** + * SplitAutomationSettings - Used for automation only + * + * Combines split method selection and method-specific settings + * into a single component for automation workflows. + */ + +import { Stack, Text, Select } from "@mantine/core"; +import { useTranslation } from "react-i18next"; +import { SplitParameters } from "../../../hooks/tools/split/useSplitParameters"; +import { METHOD_OPTIONS, SplitMethod } from "../../../constants/splitConstants"; +import SplitSettings from "./SplitSettings"; + +interface SplitAutomationSettingsProps { + parameters: SplitParameters; + onParameterChange: (key: K, value: SplitParameters[K]) => void; + disabled?: boolean; +} + +const SplitAutomationSettings = ({ parameters, onParameterChange, disabled = false }: SplitAutomationSettingsProps) => { + const { t } = useTranslation(); + + // Convert METHOD_OPTIONS to Select data format + const methodSelectOptions = METHOD_OPTIONS.map((option) => { + const prefix = t(option.prefixKey, "Split"); + const name = t(option.nameKey, "Method"); + return { + value: option.value, + label: `${prefix} ${name}`, + }; + }); + + return ( + + {/* Method Selection */} +