mirror of
https://gitlab.com/foxixus/neomovies.git
synced 2025-10-28 09:58:49 +05:00
- /src/api.ts - /src/lib/utils.ts - /src/lib/neoApi.ts - /src/lib/mongodb.ts - /src/lib/favoritesApi.ts - /src/lib/models/Favorite.ts - /src/hooks/useTMDBMovies.ts - /src/hooks/useImageLoader.ts - /src/hooks/useMovies.ts - /src/types/movie.ts - /src/components/SearchResults.tsx - /src/components/SettingsContent.tsx - /src/components/MovieCard.tsx - /src/components/FavoriteButton.tsx - /src/components/admin/MovieSearch.tsx - /src/app/page.tsx - /src/app/movie/[id]/page.tsx - /src/app/movie/[id]/MovieContent.tsx - /src/app/api/movies/upcoming/route.ts - /src/app/api/movies/search/route.ts - /src/app/api/movies/top-rated/route.ts - /src/app/api/movies/[id]/route.ts - /src/app/api/movies/popular/route.ts - /src/app/api/favorites/route.ts - /src/app/api/favorites/check/[mediaId]/route.ts - /src/app/api/favorites/[mediaId]/route.ts - /src/app/tv/[id]/TVShowContent.tsx - /src/app/tv/[id]/TVShowPage.tsx - /src/app/tv/[id]/page.tsx - /src/app/favorites/page.tsx - /src/configs/auth.ts - /next.config.js - /package.json - /README.md - /package-lock.json
40 lines
1.0 KiB
TypeScript
40 lines
1.0 KiB
TypeScript
'use client';
|
||
|
||
import styled from 'styled-components';
|
||
import PageLayout from '@/components/PageLayout';
|
||
import TVShowContent from './TVShowContent';
|
||
import type { TVShow } from '@/types/movie';
|
||
|
||
const Container = styled.div`
|
||
width: 100%;
|
||
min-height: 100vh;
|
||
padding: 0 24px;
|
||
`;
|
||
|
||
interface TVShowPageProps {
|
||
tvShowId: string;
|
||
show: TVShow | null;
|
||
}
|
||
|
||
export default function TVShowPage({ tvShowId, show }: TVShowPageProps) {
|
||
if (!show) {
|
||
return (
|
||
<PageLayout>
|
||
<Container>
|
||
<div className="flex flex-col items-center justify-center min-h-screen p-4 text-center">
|
||
<h1 className="text-3xl font-bold mb-4">Сериал не найден</h1>
|
||
<p className="text-gray-400">К сожалению, запрашиваемый сериал не существует или был удален.</p>
|
||
</div>
|
||
</Container>
|
||
</PageLayout>
|
||
);
|
||
}
|
||
|
||
return (
|
||
<PageLayout>
|
||
<Container>
|
||
<TVShowContent tvShowId={tvShowId} initialShow={show} />
|
||
</Container>
|
||
</PageLayout>
|
||
);
|
||
} |