import { useMemo } from "react";
import { getBindingDisplayText } from "./resolver.js";
import { useKeybindingContext } from "./KeybindingContext.js";
export function useKeybinding(action, context = "Global") {
    const bindings = useKeybindingContext();
    return useMemo(() => getBindingDisplayText(action, context, bindings), [action, context, bindings]);
}
