mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-15 13:43:39 +01:00
This PR prompts you to save un-previewable file types and adds an option to save to the response history.
14 lines
423 B
TypeScript
14 lines
423 B
TypeScript
import classNames from 'classnames';
|
|
import type { HotkeyAction } from '../../hooks/useHotKey';
|
|
import { useHotKeyLabel } from '../../hooks/useHotKey';
|
|
|
|
interface Props {
|
|
action: HotkeyAction;
|
|
className?: string;
|
|
}
|
|
|
|
export function HotKeyLabel({ action, className }: Props) {
|
|
const label = useHotKeyLabel(action);
|
|
return <span className={classNames(className, 'text-fg-subtle whitespace-nowrap')}>{label}</span>;
|
|
}
|