import { detectFormat } from "@/utils/file-detector"; import { useTheme } from "@/context/ThemeContext"; import { useInputFocusNav } from "@/hooks/useInputFocusNav"; type FilePickerProps = { value: string; onChange: (value: string) => void; }; export function FilePicker(props: FilePickerProps) { const { theme } = useTheme(); // Yield navigation keybinds to the Shell router while the input is focused. const inputRef = useInputFocusNav(); const format = detectFormat(props.value); return ( Format: {format} ); }