import { useMemo } from "react"; import { Text, View } from "react-native"; import { useTranslation } from "react-i18next"; import { StyleSheet, useUnistyles } from "react-native-unistyles"; interface BrowserPaneProps { browserId: string; serverId: string; workspaceId: string; cwd: string | null; isInteractive?: boolean; onFocusPane?: () => void; } export function BrowserPane({ browserId }: BrowserPaneProps) { const { t } = useTranslation(); const { theme } = useUnistyles(); const titleStyle = useMemo( () => [styles.title, { color: theme.colors.foreground }], [theme.colors.foreground], ); const subtitleStyle = useMemo( () => [styles.subtitle, { color: theme.colors.foregroundMuted }], [theme.colors.foregroundMuted], ); return ( {t("workspace.browser.unavailable.title")} {t("workspace.browser.unavailable.subtitle")} {t("workspace.browser.session", { browserId })} ); } const styles = StyleSheet.create(() => ({ container: { flex: 1, alignItems: "center", justifyContent: "center", gap: 8, padding: 16, }, title: { fontSize: 16, fontWeight: "600", }, subtitle: { fontSize: 12, }, }));