diff --git a/components/neroshitron/search_input.tsx b/components/neroshitron/search_input.tsx index ba39484..78d1d38 100644 --- a/components/neroshitron/search_input.tsx +++ b/components/neroshitron/search_input.tsx @@ -1,6 +1,7 @@ "use client;" import React, { useState, useEffect, useRef,forwardRef } from 'react'; import TagSelector from '../neroshitron/tag_selector'; +import Select from 'react-select'; interface SearchInputProps { tagsChanged: (tags: string[]) => void; @@ -10,7 +11,21 @@ interface SearchInputProps { const SearchInput = ({ tagsChanged, searchChanged, nsfwChanged}: SearchInputProps) => { - const [search, setSearch] = useState(''); + const AutocompleteDropdown = ({ tags }: { tags: any[] }) => { + const options = tags.map((tag: { name: string; }) => ({ value: tag.name, label: tag.name })); + return ( +
+ + setSearch(e.target.value)} className="rounded-l-md h-16 bg-gray-100 text-grey-darker py-2 font-normal text-grey-darkest border border-gray-100 font-bold w-full py-1 px-2 outline-none text-lg text-gray-600" type="text" placeholder="Looking for a specific collection?" /> - - -
+