API reference: @salmonui/chat/smart-paste
useSmartPastefunction
import { useSmartPaste } from '@salmonui/chat/smart-paste';function useSmartPaste(formRef: RefObject<HTMLElement | null>, adapter: SmartPasteAdapter, options?: SmartPasteOptions): SmartPaste;
Smart paste for the form (or any container) behind formRef: pair it with
any Button (onClick={() => paste()}, aria-busy={pending}).