Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

449 B
Raw Blame
import { type ShortcutLayer, useShortcut } from "../useShortcut";

/** Binds one shortcut and reports which binding fired. */
export function BoundShortcut({
  id,
  keys,
  layer,
  enabled = true,
  onPress,
}: {
  id: string;
  keys: readonly [string, string];
  layer: ShortcutLayer;
  enabled?: boolean;
  onPress: (id: string) => void;
}) {
  useShortcut(keys[0], () => onPress(id), { layer, enabled, description: keys[1] });
  return null;
}