/** * External dependencies */ import type { Dispatch, SetStateAction } from 'react'; /** * WordPress dependencies */ import { __ } from '@wordpress/i18n'; import { createInterpolateElement } from '@wordpress/element'; import { Modal, ExternalLink, __experimentalVStack as VStack, __experimentalText as Text, __experimentalHeading as Heading, } from '@wordpress/components'; import { isAppleOS } from '@wordpress/keycodes'; type Props = { setIsHelpModalOpen: Dispatch< SetStateAction< boolean > >; }; export default function HelpModal( { setIsHelpModalOpen }: Props ) { return ( setIsHelpModalOpen( false ) } size="medium" > { __( 'About default table style', 'flexible-table-block' ) } { __( 'Flexible Table Block is a block that allows you to create tables in various styles. First of all, it is recommended to set the default style of the table from "Global Setting".', 'flexible-table-block' ) } { __( 'Select multiple cells', 'flexible-table-block' ) } { createInterpolateElement( isAppleOS() ? __( 'Hold Command key to select multiple cells. Hold Shift key to select the range. Selecting multiple cells is used to merge cells or to change styles of multiple cells.', 'flexible-table-block' ) : __( 'Hold Ctrl key to select multiple cells. Hold Shift key to select the range. Selecting multiple cells is used to merge cells or to change styles of multiple cells.', 'flexible-table-block' ), { code: } ) } { __( 'About scroll table', 'flexible-table-block' ) } { __( 'If table scrolling is enabled, set "Table Width" or "Table Min Width" larger than the content width.', 'flexible-table-block' ) } { __( 'About accessibility', 'flexible-table-block' ) } { createInterpolateElement( __( 'You can tell screenreaders exactly by properly defining id, headers, and scope attributes for each cell.', 'flexible-table-block' ), { code: } ) } { createInterpolateElement( __( 'Refer to this page for the specifications of each attribute.', 'flexible-table-block' ), { Link: ( // @ts-ignore ), } ) } ); }