Hitungduit/components/Header.tsx

29 lines
607 B
TypeScript
Raw Normal View History

2026-04-18 15:39:27 +07:00
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { COLORS, FONTS } from '../constants/theme';
interface HeaderProps {
title: string;
}
export const Header: React.FC<HeaderProps> = ({ title }) => {
return (
<View style={styles.container}>
<Text style={styles.title}>{title}</Text>
</View>
);
};
const styles = StyleSheet.create({
container: {
backgroundColor: COLORS.primary,
padding: 20,
paddingTop: 50,
alignItems: 'center',
},
title: {
fontSize: FONTS.large,
fontWeight: 'bold',
color: COLORS.card,
},
});