"use client"; import { doSearch } from "@/app/_lib/actions/search"; import { getLinkList } from "@/app/_lib/data/link"; import { LinkBlock } from "@/app/_ui/LinkListBox"; import { useSearchParams } from "next/navigation" import useSWR from "swr" export default function ResultBox() { const searchParams = useSearchParams() const { data } = useSWR(`${searchParams.get('wd')}`, (e) => doSearch(e)) return
搜索结果:{`(共${data?.count || 0}条结果)`}
网站链接
{ data?.list.map((e: any) => { return }) }
}