const currentCategories = select('core/blocks').getCategories().filter(item => item.slug !== category.slug); dispatch('core/blocks').setCategories([ category, ...currentCategories ]); // Registering the new block registerBlockType(`${category.slug}/my-first-block`, myFirstBlock); using this how we can register another block please help
const currentCategories = select('core/blocks').getCategories().filter(item => item.slug !== category.slug);
dispatch('core/blocks').setCategories([ category, ...currentCategories ]);
// Registering the new block
registerBlockType(
${category.slug}/my-first-block, myFirstBlock);using this how we can register another block
please help