RocketChat/Rocket.Chat

View on GitHub
packages/ui-kit/src/rendering/LayoutBlockRenderer.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { RenderableLayoutBlock } from '../blocks/RenderableLayoutBlock';
import type { BlockContext } from './BlockContext';

export type LayoutBlockRenderer<T, B extends RenderableLayoutBlock = RenderableLayoutBlock> = (
    layoutBlock: B,
    context: BlockContext.BLOCK,
    index: number,
) => T | null;