I can’t replace a variable state in reactjs function , javascript

I can’t put a keyword in filter function between row. and .toLowerCase().

function customer (){
  const [keyword, setKeyword] = React.useState("name")

  const handleChange= (e) => {
    setKeyword(e.target.value)
  } 

 
 //row is a data fetch from api 

 function Search(rows) {
    return (rows.filter(row => row.***keyword***.toLowerCase().indexOf() > -1))
  }

  return {
    <select defaultValue={'name'}  onChange={handleChange} name="type" >
      <option value="name" >name</option>
      <option value="customer_no">customer number</option>
      <option value="email">email</option>
    </select>
  }
}