Buckets:
| import { print } from "graphql/language/printer"; | |
| import { ContentNode, Page } from "@/gql/graphql"; | |
| import { fetchGraphQL } from "@/utils/fetchGraphQL"; | |
| import { PageQuery } from "./PageQuery"; | |
| interface TemplateProps { | |
| node: ContentNode; | |
| } | |
| export default async function PageTemplate({ node }: TemplateProps) { | |
| const { page } = await fetchGraphQL<{ page: Page }>(print(PageQuery), { | |
| id: node.databaseId, | |
| }); | |
| return <div dangerouslySetInnerHTML={{ __html: page?.content || "" }} />; | |
| } | |
Xet Storage Details
- Size:
- 500 Bytes
- Xet hash:
- 87493dcd8cc3e0937d4fabd263c6315298ba47af5b1ad5170920af4b08c412c0
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.