25 lines
686 B
TypeScript
25 lines
686 B
TypeScript
|
|
||
|
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';
|
||
|
|
||
|
|
||
|
interface IPageParams {
|
||
|
params: {
|
||
|
slug: string;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default async function Page({ params }: IPageParams) {
|
||
|
const vods: IVodsResponse = await getVods(1, 24);
|
||
|
|
||
|
return (
|
||
|
<>
|
||
|
<h2 className='title is-2'>Latest VODs</h2>
|
||
|
<p className='subtitle'>page 1</p>
|
||
|
<VodsList vods={vods.data} page={1} pageSize={24} />
|
||
|
<Pager baseUrl='/latest-vods' page={1} pageCount={vods.meta.pagination.pageCount} />
|
||
|
</>
|
||
|
)
|
||
|
}
|