import React, { FormEvent } from "react" import Link from "next/link" import { ArrowLeftIcon } from "@heroicons/react/24/outline" import { formatDate, getResults } from "@/utils" import SimplifiedSearchBar from "@/components/SimplifiedSearchBar" type Props = { searchParams: { q?: string } } const Page = async ({ searchParams }: Props) => { const query = searchParams.q ?? "" const results = await getResults({ query: searchParams.q }) return (