fix: error
This commit is contained in:
26
components/bestai/header.tsx
Normal file
26
components/bestai/header.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
import { StyleSheet, Text, View } from 'react-native';
|
||||
|
||||
type HeaderProps = {
|
||||
title?: string;
|
||||
};
|
||||
|
||||
export function Header({ title = 'BESTAI' }: HeaderProps) {
|
||||
return (
|
||||
<View style={styles.container}>
|
||||
<Text style={styles.title}>{title}</Text>
|
||||
</View>
|
||||
);
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
alignItems: 'center',
|
||||
marginBottom: 28,
|
||||
},
|
||||
title: {
|
||||
fontSize: 22,
|
||||
fontWeight: '800',
|
||||
letterSpacing: 4,
|
||||
color: '#F5F8FF',
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user