Current block: {focusBlock?.type}
);
};
```
## Creating Custom Blocks
Custom blocks allow you to create reusable email components by composing basic blocks. Register custom blocks with BlockManager to use them in the editor.
```tsx
import {
IBlockData,
BasicType,
components,
createCustomBlock,
getPreviewClassName,
BlockManager,
} from 'easy-email-core';
import { merge } from 'lodash';
import React from 'react';
const { Column, Section, Text, Button, Image } = components;
// Define custom block type
const CUSTOM_BLOCK_TYPE = 'custom_product_card';
// Define block data interface
interface IProductCard extends IBlockData<
{ 'background-color': string; 'button-color': string },
{ title: string; price: string; imageUrl: string; buttonText: string }
> {}
// Create custom block
const ProductCard = createCustomBlock