fp/services/next/app/latest-vods/page.tsx

25 lines
681 B
TypeScript
Raw Normal View History

2024-01-20 16:16:14 +00:00
2024-07-10 22:11:18 +00:00
import VodsList from '@/app/components/vods-list';
import { IVodsResponse } from '@/app/lib/vods';
import Pager from '@/app/components/pager';
import { getVods } from '@/app/lib/vods';
2024-01-20 16:16:14 +00:00
2024-02-02 23:50:24 +00:00
2024-01-20 16:16:14 +00:00
interface IPageParams {
params: {
slug: string;
}
}
export default async function Page({ params }: IPageParams) {
2024-12-12 07:23:46 +00:00
const pageSize = 24
const vods = await getVods(1, pageSize);
2024-01-20 16:16:14 +00:00
return (
<>
<h2 className='title is-2'>Latest VODs</h2>
<p className='subtitle'>page 1</p>
2024-12-12 07:23:46 +00:00
<VodsList vods={vods} page={1} pageSize={24} />
<Pager baseUrl='/latest-vods' page={1} pageCount={vods.length/pageSize} />
2024-01-20 16:16:14 +00:00
</>
)
}