import { TextInput } from '@inkjs/ui' import { Box, Text, useInput } from 'ink' export type LlamaPathCardProps = { onSubmit: (path: string) => void onCancel: () => void } export function LlamaPathCard({ onSubmit, onCancel }: LlamaPathCardProps) { useInput((_, key) => { if (key.escape) { onCancel() } }) return ( enter GGUF model path › { const trimmed = value.trim() if (trimmed !== '') { onSubmit(trimmed) } }} /> [enter] confirm [esc] quit ) }