/** * Casting Player Header * Fixed top bar: dismiss button, connection indicator, settings button. */ import { Ionicons } from "@expo/vector-icons"; import type { TFunction } from "i18next"; import { Pressable, View } from "react-native"; import { Text } from "@/components/common/Text"; interface CastPlayerHeaderProps { /** Top safe-area inset, used to offset the fixed header. */ insetTop: number; /** Streamyfin protocol accent color. */ protocolColor: string; /** Friendly name of the connected cast device, or null. */ currentDevice: string | null; /** Translation function. */ t: TFunction; /** Dismiss the casting player modal. */ onDismiss: () => void; /** Open the device sheet (connection indicator press). */ onPressConnectionIndicator: () => void; /** Open the settings menu. */ onPressSettings: () => void; } export function CastPlayerHeader({ insetTop, protocolColor, currentDevice, t, onDismiss, onPressConnectionIndicator, onPressSettings, }: CastPlayerHeaderProps) { return ( {/* Connection indicator */} {currentDevice || t("casting_player.unknown_device")} ); }