23 lines
601 B
TypeScript
23 lines
601 B
TypeScript
import { Metadata } from 'next';
|
|
|
|
import popularQuery from '@/data/queries/popular';
|
|
import { TITLE } from '@/env';
|
|
import getQueryClient from '@/lib/queryClient';
|
|
|
|
import Container from './container';
|
|
|
|
export const metadata: Metadata = {
|
|
title: `Top Rated Movies | ${TITLE}`,
|
|
description: `Discover the top-rated movies on ${TITLE}. Find the highest-rated films and make informed viewing choices.`
|
|
};
|
|
|
|
const Top = () => {
|
|
const queryClient = getQueryClient();
|
|
|
|
queryClient.prefetchInfiniteQuery(popularQuery({ sortBy: 'vote_average.desc' }));
|
|
|
|
return <Container />;
|
|
};
|
|
|
|
export default Top;
|