import React from 'react' ; import { useActions } from 'kea' ; import { MultiInputRows } from '../../../multi_input_rows' ; import { RelevanceTuningLogic } from '../../index' ; import { ValueBoost } from '../../types' ; interface Props { boost : ValueBoost ; index : number ; name : string ; } export const ValueBoostForm = ( { boost , index , name } ) => { const { updateBoostValue } = useActions ( RelevanceTuningLogic ) ; const values = boost . value ; return ( < MultiInputRows initialValues = { values } onChange = { ( updatedValues ) => updateBoostValue ( name , index , updatedValues ) } id = { `${ name }BoostValue-${ index }` } />); } ;