{
setMangaSearchedTitle(event.target.value);
}}
onKeyDown={async (event) => {
if (event.key === "Enter" || event.code === "Enter") {
await GetResults();
}
}}
/>
{results}
"use client"; import { Input, Progress, Card, CardBody, Image, Chip, } from "@nextui-org/react"; import Link from "next/link"; import { useState } from "react"; import { SearchedMangaResults } from "./requests"; const MangaSearchBox = () => { const [searchedMangaTitle, setMangaSearchedTitle] = useState(""); const [results, setResults] = useState(
Start typing and results will show here
{item.title.english || item.title.romaji}
No results found for the searched title
)}