import { memo } from 'react' import { type FlashComponentConfigurableProps } from '../types/types' import { getComponent } from '../utils/render-utils' export const RenderItem = memo((props: FlashComponentConfigurableProps) => { if (!props.components || props.components.length === 0) { return null } return ( <> {props.components.map((item, index) => { const RenderComponent = getComponent(item.name) return ( {item.components && item.components.length > 0 && ( )} ) })} ) })