/****************************************************************************** * Copyright (c) 2026 Contributors to the Eclipse Foundation. * * See the NOTICE file(s) distributed with this work for additional * information regarding copyright ownership. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License 2.0 which is available at * https://www.eclipse.org/legal/epl-2.0. * * SPDX-License-Identifier: EPL-2.0 *****************************************************************************/ import { FC } from "react"; import { Paper, Autocomplete, InputBase, IconButton } from "@mui/material"; import SearchIcon from '@mui/icons-material/Search'; import type { Customer } from "../../../extension-registry-types"; interface CustomerSearchProps { customers: Customer[]; selectedCustomer: Customer | null; loading: boolean; onCustomerChange: (_: unknown, value: Customer | null) => void; pageSettings?: { themeType?: string }; } export const CustomerSearch: FC = ({ customers, selectedCustomer, loading, onCustomerChange, pageSettings }) => { const searchIconColor = pageSettings?.themeType === 'dark' ? '#111111' : '#ffffff'; return ( option.name} value={selectedCustomer} onChange={onCustomerChange} loading={loading} renderInput={(params) => { const { ref, color, size, ...inputProps } = params.inputProps; return ( ); }} /> ); };