mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
14 lines
390 B
TypeScript
14 lines
390 B
TypeScript
import type { StrictReactNode } from "@k8slens/utilities";
|
|
import React from "react";
|
|
|
|
export interface KeyboardShortcutScopeProps {
|
|
id: string;
|
|
children: StrictReactNode;
|
|
}
|
|
|
|
export const KeyboardShortcutScope = ({ id, children }: KeyboardShortcutScopeProps) => (
|
|
<div data-keyboard-shortcut-scope={id} data-keyboard-shortcut-scope-test={id} tabIndex={-1}>
|
|
{children}
|
|
</div>
|
|
);
|