/** * WordPress dependencies */ import { __ } from '@wordpress/i18n'; import { isAppleOS } from '@wordpress/keycodes'; import { Modal } from '@wordpress/components'; import { Link, Stack, Text } from '@wordpress/ui'; type KeyboardShortcutsModalProps = { onClose: () => void; }; export default function KeyboardShortcutsModal( { onClose }: KeyboardShortcutsModalProps ) { return ( }> { __( 'This plugin is made with "Monaco Editor", the code editor behind VS Code.', 'custom-html-block-extension' ) } }> { __( 'So you can use many of keyboard shortcuts available in VS Code on custom HTML block.', 'custom-html-block-extension' ) } }> { isAppleOS() ? __( 'Keyboard shortcuts for macOS', 'custom-html-block-extension' ) : __( 'Keyboard shortcuts for Windows', 'custom-html-block-extension' ) } ); }