Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
optometrists
/
cache
/
cache
/
cache
/
cache
/
.wp-cli
/
wp-content
/
plugins
/
woocommerce
/
packages
/
woocommerce-blocks
/
assets
/
js
/
atomic
/
utils
:
get-block-map.js
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
/** * External dependencies */ import { getRegisteredBlockComponents } from '@woocommerce/blocks-registry'; /** * Internal dependencies */ import '../blocks/component-init'; /** * Map named Blocks to defined React Components to render on the frontend. * * @param {string} blockName Name of the parent block. */ export const getBlockMap = ( blockName ) => getRegisteredBlockComponents( blockName );