import React from 'react'; export default function MembershipFunctionControls({ selectedTerm, currentMf, selectedColor, baseScale, updateCurrentMf }) { if (!selectedTerm || !currentMf) return null; const scaleKeys = Object.keys(baseScale); const selectedIndex = scaleKeys.indexOf(selectedTerm); let minBound = 0; let maxBound = 1; if (selectedIndex > 0) { minBound = baseScale[scaleKeys[selectedIndex - 1]]; } if (selectedIndex >= 0 && selectedIndex < scaleKeys.length - 1) { maxBound = baseScale[scaleKeys[selectedIndex + 1]]; } return (

Ajustando franjas para: "{selectedTerm}"

updateCurrentMf('coreStart', e.target.value)} className="w-full cursor-pointer" style={{ accentColor: selectedColor }} />
updateCurrentMf('supportStart', e.target.value)} className="w-full cursor-pointer" style={{ accentColor: selectedColor, opacity: 0.7 }} />
updateCurrentMf('coreEnd', e.target.value)} className="w-full cursor-pointer" style={{ accentColor: selectedColor }} />
updateCurrentMf('supportEnd', e.target.value)} className="w-full cursor-pointer" style={{ accentColor: selectedColor, opacity: 0.7 }} />
); }