1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/packages/business-features/keyboard-shortcuts/src/keyboard-shortcut-scope.tsx
Sebastian Malton 7bc8a66bcf chore: Remove unnecessary use of SingleOrMany<SafeReactNode>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-12 14:14:38 -04:00

14 lines
386 B
TypeScript

import type { SafeReactNode } from "@k8slens/utilities";
import React from "react";
export interface KeyboardShortcutScopeProps {
id: string;
children: SafeReactNode;
}
export const KeyboardShortcutScope = ({ id, children }: KeyboardShortcutScopeProps) => (
<div data-keyboard-shortcut-scope={id} data-keyboard-shortcut-scope-test={id} tabIndex={-1}>
{children}
</div>
);