Moved later/gitgram-ai/gitgram/ to apps/ritgram/ (fresh history; full history stays in caelum0x/gitgram). AITimeMachine stays separate in later/gitgram-ai per the Rithub master plan. Logs, pid files and env files are ignored; GPL-3.0 mobile/proximity noted in THIRD_PARTY_NOTICES. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
import React, { useContext } from 'react';
|
|
import { StyleProp, StyleSheet, Text, TextStyle, View } from 'react-native';
|
|
import { responsiveHeight } from 'react-native-responsive-dimensions';
|
|
import { AppContext } from '@app/context';
|
|
import { Typography } from '@app/theme';
|
|
import { ThemeColors } from '@app/types/theme';
|
|
|
|
const { FontWeights, FontSizes } = Typography;
|
|
|
|
interface SvgBannerProps {
|
|
Svg: any,
|
|
placeholder: string,
|
|
spacing?: number,
|
|
textStyle?: StyleProp<TextStyle>
|
|
};
|
|
|
|
const SvgBanner: React.FC<SvgBannerProps> = ({ Svg, placeholder, spacing, textStyle }) => {
|
|
const { theme } = useContext(AppContext);
|
|
|
|
return (
|
|
<View style={[styles().container, { marginTop: responsiveHeight(spacing) || undefined }]}>
|
|
<Svg />
|
|
<Text style={[styles(theme).placeholderText, textStyle]}>{placeholder}</Text>
|
|
</View>
|
|
);
|
|
};
|
|
|
|
const styles = (theme = {} as ThemeColors) => StyleSheet.create({
|
|
container: {
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
marginHorizontal: 10
|
|
},
|
|
placeholderText: {
|
|
...FontWeights.Light,
|
|
...FontSizes.Label,
|
|
color: theme.text02,
|
|
marginTop: 40
|
|
}
|
|
});
|
|
|
|
export default SvgBanner; |