mirror of
https://gitlab.com/foxixus/neomovies.git
synced 2025-10-28 01:48:50 +05:00
Release 2.5
This commit is contained in:
30
src/app/tv/_components/TVShowPage.tsx
Normal file
30
src/app/tv/_components/TVShowPage.tsx
Normal file
@@ -0,0 +1,30 @@
|
||||
'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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user