import React, { forwardRef, ChangeEvent, useState } from 'react'; import { default as MuiAutoComplete, AutocompleteProps } from '@material-ui/lab/Autocomplete'; import TextField from '@material-ui/core/TextField'; import styled from '@emotion/styled'; import Search from '@material-ui/icons/Search'; import CircularProgress from '../CircularProgress'; import AutoCompleteTextField from './AutoCompleteTextField'; const StyledAutoComplete = styled(MuiAutoComplete)({ width: '100%', color: 'white', }); const StyledSearch = styled(Search)({ color: 'white', marginRight: 10, }); const StyledTextField = styled(TextField)({ '& .MuiInputBase-root': { color: 'white', }, '& .MuiInput-underline': { ':before': { content: "''", border: 'none', }, ':after': { borderColor: 'white', }, ':hover:before': { content: 'none', }, }, }); interface Props { placeholder?: string; onChange: (event: ChangeEvent) => void; options: Array