import Chart from '../membershipFunction/Chart';
import Controls from '../membershipFunction/Controls';
import { CHART_COLORS } from '../../config';
export default function Step2FuzzyModeling({
baseScale,
mfDefinitions,
selectedTerm,
setSelectedTerm,
updateCurrentMf,
handleFinalSubmit,
onBack,
subscales,
onOpenSubscale,
submitError
}) {
const scaleKeys = Object.keys(baseScale);
const selectedColor = CHART_COLORS[scaleKeys.indexOf(selectedTerm) % CHART_COLORS.length] || '#2563eb';
return (
Paso 2: Modelar Conceptos Difusos
{scaleKeys.map((name, index) => {
const isSelected = selectedTerm === name;
const color = CHART_COLORS[index % CHART_COLORS.length];
return (
);
})}
{submitError && (
⚠️
Error de validación al generar la gráfica
{submitError}
)}
);
}