import React, { forwardRef } from 'react' import type { HTMLAttributes } from 'react' import SearchProvider, { type SearchProviderContextValue, } from '../../molecules/SearchProvider' export type SearchInputProps = { /** * ID to find this component in testing tools (e.g.: cypress, * testing-library, and jest). */ testId?: string /** * The current status of the Search Dropdown. */ visibleDropdown: boolean /** * Search result searchId. */ searchId?: string } & HTMLAttributes & SearchProviderContextValue const SearchInput = forwardRef( function SearchInput( { children, visibleDropdown = false, testId = 'fs-search-input', isLoading, products, term, terms, onSearchSelection, searchId, ...otherProps }, ref ) { return (
{children}
) } ) export default SearchInput