// @bun
import {
  fg,
  getActiveTheme,
  t,
  text
} from "./chunk-m2h26j5f.js";

// src/components/key-hints.ts
function formatKeyHints(hints) {
  return hints.map((h) => h.key ? `${h.key} ${h.label}` : h.label).join(" \u2022 ");
}
function keyHints(ctx, hints) {
  const theme = getActiveTheme();
  return text(ctx, t`${fg(theme.text.dim)(formatKeyHints(hints))}`);
}

export { formatKeyHints, keyHints };
