import React from "react"; import { ArrowLeftIcon } from "@heroicons/react/24/outline"; import { formatDate, getResults } from "@/utils"; import SimplifiedSearchBar from "@/components/SimplifiedSearchBar"; import { Link, useSearchParams } from "@remix-run/react"; const Page = async () => { const [searchParams] = useSearchParams(); const query = searchParams.get("q") ?? ""; const results = await getResults({ query: query }); return (