mirror of
https://gitlab.com/foxixus/neomovies.git
synced 2025-10-27 17:38:50 +05:00
37 lines
769 B
TypeScript
37 lines
769 B
TypeScript
|
|
'use client';
|
|||
|
|
|
|||
|
|
import styled from 'styled-components';
|
|||
|
|
import PageLayout from '@/components/PageLayout';
|
|||
|
|
import TVShowContent from './TVShowContent';
|
|||
|
|
import type { TVShowDetails } from '@/lib/api';
|
|||
|
|
|
|||
|
|
const Container = styled.div`
|
|||
|
|
width: 100%;
|
|||
|
|
min-height: 100vh;
|
|||
|
|
padding: 0 24px;
|
|||
|
|
`;
|
|||
|
|
|
|||
|
|
interface TVShowPageProps {
|
|||
|
|
tvShowId: string;
|
|||
|
|
show: TVShowDetails | null;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
export default function TVShowPage({ tvShowId, show }: TVShowPageProps) {
|
|||
|
|
if (!show) {
|
|||
|
|
return (
|
|||
|
|
<PageLayout>
|
|||
|
|
<Container>
|
|||
|
|
<div>Сериал не найден</div>
|
|||
|
|
</Container>
|
|||
|
|
</PageLayout>
|
|||
|
|
);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return (
|
|||
|
|
<PageLayout>
|
|||
|
|
<Container>
|
|||
|
|
<TVShowContent tvShowId={tvShowId} initialShow={show} />
|
|||
|
|
</Container>
|
|||
|
|
</PageLayout>
|
|||
|
|
);
|
|||
|
|
}
|