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>
39 lines
1012 B
TypeScript
39 lines
1012 B
TypeScript
import React, { useContext } from 'react';
|
|
import { View, Text, StyleSheet } from 'react-native';
|
|
import { AppContext } from '@app/context';
|
|
import { ThemeColors } from '@app/types/theme';
|
|
import { Typography } from '@app/theme';
|
|
|
|
const { FontWeights, FontSizes } = Typography;
|
|
|
|
interface BottomSheetHeaderProps {
|
|
heading: string,
|
|
subHeading: string
|
|
};
|
|
|
|
const BottomSheetHeader: React.FC<BottomSheetHeaderProps> = ({ heading, subHeading }) => {
|
|
const { theme } = useContext(AppContext);
|
|
return (
|
|
<View style={styles().container}>
|
|
<Text style={styles(theme).heading}>{heading}</Text>
|
|
<Text style={styles(theme).subHeading}>{subHeading}</Text>
|
|
</View>
|
|
);
|
|
};
|
|
|
|
const styles = (theme = {} as ThemeColors) => StyleSheet.create({
|
|
container: {},
|
|
heading: {
|
|
...FontWeights.Bold,
|
|
...FontSizes.Label,
|
|
color: theme.text01
|
|
},
|
|
subHeading: {
|
|
...FontWeights.Regular,
|
|
...FontSizes.Body,
|
|
marginTop: 2,
|
|
color: theme.text02
|
|
}
|
|
});
|
|
|
|
export default BottomSheetHeader; |