import { SymbolView } from "../../components/AppSymbol";
import { Pressable, StyleSheet, View } from "react-native";
import { useThemeColor } from "../../lib/useThemeColor";
export interface SidebarHeaderActionsProps {
readonly onOpenSettings: () => void;
/** Rendered inside a shared capsule group — buttons drop their own chrome. */
readonly grouped?: boolean;
}
function FallbackHeaderButton(props: {
readonly accessibilityLabel: string;
readonly icon: "gearshape" | "square.and.pencil";
readonly grouped?: boolean;
readonly onPress: () => void;
}) {
const iconColor = useThemeColor("--color-foreground");
const pressedBackgroundColor = useThemeColor("--color-subtle");
const idleBackgroundColor = useThemeColor("--color-glass-surface");
const borderColor = useThemeColor("--color-header-border");
return (
[
props.grouped
? { backgroundColor: pressed ? pressedBackgroundColor : "transparent", borderWidth: 0 }
: {
backgroundColor: pressed ? pressedBackgroundColor : idleBackgroundColor,
borderColor,
borderWidth: StyleSheet.hairlineWidth,
},
]}
>
);
}
export function SidebarHeaderActions(props: SidebarHeaderActionsProps) {
return (
);
}