/**
 * block-renderers.ts — Content Block 渲染注册表
 *
 * 物种 B（RichBlock）的渲染组件通过注册表分发，
 * 新增 block 类型只需加一行注册。
 */
import type { FC } from 'react';

type BlockRendererProps = { block: any; agentId?: string | null; sessionPath?: string }; // eslint-disable-line @typescript-eslint/no-explicit-any

export const BLOCK_RENDERERS: Record<string, FC<BlockRendererProps>> = {};

export function registerBlockRenderer(type: string, component: FC<BlockRendererProps>) {
  BLOCK_RENDERERS[type] = component;
}
