ai-bot/app/(main)/page.tsx

33 lines
1.1 KiB
TypeScript
Raw Normal View History

import SiderNav from "../_ui/SiderNav";
import Search from "../_ui/Search";
import LinkListBox from "../_ui/LinkListBox";
import { getLinkTypeList } from "../_lib/data/linkType";
2025-03-04 15:20:17 +08:00
import { getLinkList } from "../_lib/data/link";
import Footer from "../_ui/footer";
2025-03-04 16:13:41 +08:00
import { Suspense } from "react";
2025-03-07 13:44:20 +08:00
import CustomAffix from "../_ui/CustomAffix";
export default async function Page() {
const { list: linkTypeList } = await getLinkTypeList({})
2025-02-27 18:40:23 +08:00
const { list: linkList } = await getLinkList({ page: 1, pageSize: 9999 })
return (
<div className="flex min-h-full w-full font-[family-name:var(--font-geist-sans)] relative">
<SiderNav linkList={linkTypeList} />
<div className="w-full">
<main className="flex-1 relative flex flex-col p-5 gap-y-4">
2025-03-04 16:13:41 +08:00
<Suspense fallback={<></>}>
<Search></Search>
</Suspense>
<LinkListBox linkList={linkList} linkTypeList={linkTypeList} showHot showRecent></LinkListBox>
2025-03-07 13:44:20 +08:00
<CustomAffix></CustomAffix>
</main>
<Footer></Footer>
</div>
</div>
);
}