import { useMemo } from 'react'; import { Fieldset } from '@/shared/ui'; import { PayloadItemProps } from '../../model'; import { getItemLabel, getNextLevelName } from '../../helpers'; const ArrayItem = ({ title, levelName, typeStructure, renderNextItem }: PayloadItemProps) => { const { type, len } = typeStructure; const arrayItems = useMemo(() => new Array(len || 0).fill(type), [type, len]); const itemLabel = getItemLabel(typeStructure.name, title); return (
); }; export { ArrayItem };