Closed dusunax closed 1 month ago
[x] add 'use server' actions.tsx
import { Suspense } from "react"; import { getVideoByComponents } from "../actions"; import SlideListWrapper from "@/components/gallery/SlideListWrapper"; export default async function VideoPage() { // async function const data = await getVideoByComponents(); // server actions return ( <section className="prose dark:prose-invert max-w-none flex-1 flex flex-col"> <h1>Videos</h1> <Suspense> {/* need to add LoadMore component. */} <SlideListWrapper>{data}</SlideListWrapper> </Suspense> </section> ); }
Videos
[x] add 'use server' actions.tsx