Files
neomovies/src/app/tv/_components/TVShowPage.tsx
2025-10-20 08:45:42 +00:00

30 lines
651 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'use client';
import PageLayout from '@/components/PageLayout';
import TVShowContent from './TVShowContent';
import type { TVShow } from '@/types/movie';
interface TVShowPageProps {
showId: string;
show: TVShow | null;
}
export default function TVShowPage({ showId, show }: TVShowPageProps) {
if (!show) {
return (
<PageLayout>
<div className="w-full min-h-screen">
<div>Сериал не найден</div>
</div>
</PageLayout>
);
}
return (
<PageLayout>
<div className="w-full">
<TVShowContent tvShowId={showId} initialShow={show} />
</div>
</PageLayout>
);
}