import { SymbolView } from "expo-symbols"; import { Pressable, View } from "react-native"; import { AppText as Text } from "../../components/AppText"; import { useThemeColor } from "../../lib/useThemeColor"; export function NewTaskSheetHeader(props: { readonly eyebrow?: string; readonly title: string; readonly control?: { readonly icon: "chevron.left" | "xmark"; readonly onPress: () => void; }; }) { const iconColor = useThemeColor("--color-icon"); return ( <> {props.control ? ( ) : null} {props.eyebrow ?? "New task"} {props.title} ); }