mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-16 05:56:47 +01:00
12 lines
283 B
TypeScript
12 lines
283 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>{label}</span>;
|
|
}
|