mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-18 06:57:11 +01:00
12 lines
290 B
TypeScript
12 lines
290 B
TypeScript
import type { HotkeyAction } from '../../hooks/useHotkey';
|
|
import { useHotKeyLabel } from '../../hooks/useHotkey';
|
|
|
|
interface Props {
|
|
action: HotkeyAction | null;
|
|
}
|
|
|
|
export function HotKeyLabel({ action }: Props) {
|
|
const label = useHotKeyLabel(action);
|
|
return <span>{label}</span>;
|
|
}
|