/** * External dependencies */ import clsx from 'clsx'; /** * WordPress dependencies */ import { __, sprintf } from '@wordpress/i18n'; /** * Internal dependencies */ import { KEYBOARD_LAYOUTS } from '../../keyboard-layout'; import type { Key } from '../../constants'; type Props = { activeKeys: Key[]; keyLayout: string; keyIndicator: string; onKeyClick: ( note: string, octave: number ) => void; }; const Keyboard = ( { activeKeys, keyLayout, keyIndicator, onKeyClick }: Props ) => { const keys = KEYBOARD_LAYOUTS.find( ( { value } ) => value === keyLayout )?.keys || KEYBOARD_LAYOUTS[ 0 ].keys; return (