import { Text } from 'expo-dev-client-components'; import * as React from 'react'; import { StyleSheet } from 'react-native'; type DevelopmentServerSubtitleProps = { title?: string; subtitle?: string; onPressSubtitle?: () => any; image?: number | string | null; }; export function DevelopmentServerSubtitle({ title, subtitle, image, onPressSubtitle, }: DevelopmentServerSubtitleProps) { const isCentered = !title && !image; return subtitle ? ( {subtitle} ) : null; } const styles = StyleSheet.create({ subtitleMarginBottom: { marginBottom: 2, }, subtitleCentered: { textAlign: 'center', marginEnd: 10, }, });