added ShowInfo component to showDetails.tsx
This commit is contained in:
49
components/ui/ShowInfo.tsx
Normal file
49
components/ui/ShowInfo.tsx
Normal file
@@ -0,0 +1,49 @@
|
||||
import { View, Text, StyleSheet } from "react-native";
|
||||
|
||||
type ShowInfoProps = {
|
||||
seasons: number;
|
||||
participants: number;
|
||||
streamingService: string;
|
||||
};
|
||||
|
||||
const ShowInfo = ({
|
||||
seasons,
|
||||
participants,
|
||||
streamingService,
|
||||
}: ShowInfoProps) => {
|
||||
return (
|
||||
<View style={styles.showMainInfoSection}>
|
||||
<Text style={styles.showInfoText}>{seasons} Staffeln</Text>
|
||||
<View style={styles.dot} />
|
||||
<Text style={styles.showInfoText}>{participants} Teilnehmer</Text>
|
||||
<View style={styles.dot} />
|
||||
<Text style={styles.showInfoText}>{streamingService}</Text>
|
||||
</View>
|
||||
);
|
||||
};
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
showMainInfoSection: {
|
||||
width: "auto",
|
||||
height: "auto",
|
||||
alignSelf: "center",
|
||||
flexDirection: "row",
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
bottom: 25,
|
||||
},
|
||||
showInfoText: {
|
||||
color: "hsl(0, 0%, 80%)",
|
||||
fontSize: 14,
|
||||
},
|
||||
dot: {
|
||||
width: 4,
|
||||
height: 4,
|
||||
borderRadius: 3,
|
||||
backgroundColor: "hsl(0, 0%, 80%)",
|
||||
marginHorizontal: 7,
|
||||
marginTop: 2,
|
||||
},
|
||||
});
|
||||
|
||||
export default ShowInfo;
|
||||
Reference in New Issue
Block a user