-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSerieDetails.tsx
45 lines (43 loc) · 958 Bytes
/
SerieDetails.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import Days from "./Days";
import Genres from "./Genres";
import Poster from "./Poster";
import SerieName from "./SerieName";
import Summary from "./Summary";
import Seasons from "./Seasons";
import { SeasonProps } from "./Season";
import { View } from "./Themed";
export type SerieProps = {
id: string;
urlImage?: string;
name: string;
summary: string;
schedule: {
time: string;
days: Array<string>;
};
genres: Array<string>;
seasons: Array<SeasonProps>;
};
export const SerieDetails = (props: SerieProps) => {
const {
id,
name,
summary,
urlImage,
schedule,
genres,
seasons,
} = props;
return (
<View>
<Poster url={urlImage} />
<View style={{ marginHorizontal: 20 }}>
<SerieName name={name} />
<Summary text={summary} />
<Days schedule={schedule} />
<Genres genres={genres} />
<Seasons seasons={seasons} />
</View>
</View>
);
};