import React, { ComponentProps, PropsWithChildren, useMemo } from 'react'; import { Appbar } from 'react-native-paper'; import { View } from 'react-native'; import { useSafeAreaInsets } from 'react-native-safe-area-context'; import { useColorRoles } from '../theme/colorSystem'; import HeaderColorRolesProvider from './croles/HeaderColorRolesProvider'; import { HEADER_COLL_HEIGHT } from '../constants'; type AppbarHeaderProps = ComponentProps; function AppbarHeader(props: AppbarHeaderProps) { const { surface, statusBarBackground } = useColorRoles(); const { top } = useSafeAreaInsets(); const appbarStyles = useMemo( () => [ props.style, { backgroundColor: surface.background, height: HEADER_COLL_HEIGHT } ], [surface.background, props.style] ); return ( ); } export type UIHeaderAtomProps = PropsWithChildren; export default function UIHeaderAtom(appbarProps: UIHeaderAtomProps) { return ( ); }