search clean page setup ready for just the results needed

This commit is contained in:
Arjun Patel
2022-01-31 23:29:30 -08:00
parent d9c82659bb
commit fb4605b892
5 changed files with 44 additions and 2 deletions
@@ -0,0 +1,13 @@
import { useRouter } from "next/router";
export default function SearchResults() {
const router = useRouter();
const q = router.query.q;
return (
<div className="mx-auto my-auto flex flex-col">
<span className="text-xs text-slate-400">0 results for {`"${q}"`}</span>
</div>
);
}