import React, { useState } from "react"; import "./Form.css"; const BillingForm = (props) => { const [itemValue, setItemValue] = useState(""); const [descValue, setDescValue] = useState(""); const savedItems = props.savedItems; let savedItemNames = [] for (let i = 0; i < savedItems.length; i++) { savedItemNames.push(savedItems[i].Model) } const filteredItems = savedItemNames.filter( (item) => { // case insensitive return item.toLowerCase().includes(itemValue.toLowerCase()); } ); return (