import { Img } from '../../ui-kit/Img/Img'; import { RichText } from '../../ui-kit/RichText/RichText'; import { Text } from '../../ui-kit/Text/Text'; import { type AtmsDef, type ItemList } from './OfficesAtmsMapContent'; export const renderDescriptionBlock = ({ __html, list, richVersion }: AtmsDef) => __html || list?.length ? (
{__html ? : null} {list?.length ? (
{list.map(renderItem)}
) : null}
) : null; const renderItem = (item: ItemList, i: number) => (
{item?.text ? ( {item.text} ) : null}
);