Determine whether one of the inner blocks currently is selected.
import { useHasSelectedInnerBlock } from '@10up/block-components';
function BlockEdit( props ) {
const hasSelectedInnerBlock = useHasSelectedInnerBlock();
return (
<div>
{ hasSelectedInnerBlock ? 'InnerBlocks are selected' : 'InnerBlocks are not selected' }
</div>
)
}