mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-18 15:06:58 +01:00
12 lines
328 B
TypeScript
12 lines
328 B
TypeScript
import type { HotkeyAction } from '../../hooks/useHotKey';
|
|
import { useHotKeyLabel } from '../../hooks/useHotKey';
|
|
|
|
interface Props {
|
|
action: HotkeyAction;
|
|
}
|
|
|
|
export function HotKeyLabel({ action }: Props) {
|
|
const label = useHotKeyLabel(action);
|
|
return <span className="text-fg-subtle whitespace-nowrap">{label}</span>;
|
|
}
|