// components/Header.tsx import React from 'react'; import { View, Platform } from 'react-native'; import { Text } from '@/components/ui/text'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; interface HeaderProps { title: string; rightElement?: React.ReactNode; children?: React.ReactNode; } export default function Header({ title, rightElement, children }: HeaderProps) { const insets = useSafeAreaInsets(); return ( {title} {children} {rightElement && ( {rightElement} )} ); }