import { type LayoutChangeEvent, type StyleProp, type TextStyle, View, type ViewStyle, } from 'react-native' import type React from 'react' import {atoms as a, useTheme} from '#/alf' import {Text} from '#/components/Typography' export function Header({ renderLeft, renderRight, children, style, onLayout, }: { renderLeft?: () => React.ReactNode renderRight?: () => React.ReactNode children?: React.ReactNode style?: StyleProp onLayout?: (event: LayoutChangeEvent) => void }) { const t = useTheme() return ( {renderLeft && ( {renderLeft()} )} {children} {renderRight && ( {renderRight()} )} ) } export function HeaderText({ children, style, }: { children?: React.ReactNode style?: StyleProp }) { return ( {children} ) }