/** * Auth Header Component * Displays auth screen title and optional subtitle * PERFORMANCE: Memoized to prevent unnecessary re-renders */ import React, { memo } from "react"; import { View, StyleSheet } from "react-native"; import { useAppDesignTokens } from "@umituz/react-native-design-system/theme"; import { useResponsive } from "@umituz/react-native-design-system/responsive"; import { AtomicText } from "@umituz/react-native-design-system/atoms"; interface AuthHeaderProps { title: string; subtitle?: string; } export const AuthHeader = memo(({ title, subtitle }) => { const tokens = useAppDesignTokens(); const responsive = useResponsive(); return ( {title} {subtitle && ( {subtitle} )} ); }); AuthHeader.displayName = 'AuthHeader'; const styles = StyleSheet.create({ header: { alignItems: "center", }, });