18 lines · 539 B · TypeScript
RawDownload
import {  type ComposerPathSearchState,  type ComposerPathSearchTarget,} from "@t3tools/client-runtime/state/threads"; import { useComposerPathSearch as useComposerPathSearchQuery } from "../state/queries"; export function useComposerPathSearch(target: ComposerPathSearchTarget): ComposerPathSearchState {  const state = useComposerPathSearchQuery(target);  return {    entries: state.entries.map((entry) => ({      path: entry.path,      kind: entry.kind,    })),    error: state.error,    isPending: state.isPending,  };}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t