-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathpage.tsx
More file actions
33 lines (26 loc) · 767 Bytes
/
page.tsx
File metadata and controls
33 lines (26 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import { notFound } from "next/navigation"
import { isSepolia } from "@/utils"
import { genMeta } from "@/utils/route"
import Contribute from "./Contribute"
import Header from "./Header"
import Highlights from "./Highlights"
import Protocols from "./Protocols"
export const generateMetadata = genMeta(() => ({
titleSuffix: "Ecosystem",
relativeURL: "/ecosystem",
}))
const Ecosystem = async () => {
if (isSepolia) {
notFound()
}
const categoryToTags = await fetch("https://scroll-eco-list.netlify.app/docs/category-to-tags.json").then(res => res.json())
return (
<>
<Header></Header>
<Highlights />
<Protocols categories={categoryToTags}></Protocols>
<Contribute></Contribute>
</>
)
}
export default Ecosystem