import { redirect } from "next/navigation" import { headers } from "next/headers" import Feed from "@/components/Feed" import SearchBar from "@/components/SearchBar" import { fetchFeedData } from "@/lib/feed.ts" import * as GraphicSection from "@/components/GraphicSection" import { ArrowIcon } from "@/components/ArrowIcon" type Props = { searchParams?: { q?: string | undefined } } export default async function Home({ searchParams }: Props) { const headerList = headers() const referer = headerList.get("referer") if (!referer && searchParams?.q) { redirect(`/search?q=${searchParams.q}`) } const data = await fetchFeedData({}) return ( <>

WEB3.NEWS is a project by Lume. Let’s build an open, user-owned web together.

Learn more about Lume and join our community
) }