components.form.fields.multiple.MultipleTableFieldCells.tsx Maven / Gradle / Ivy
import InputField from 'components/form/fields/InputField';
import { useFieldInfo } from 'hooks/field';
import _ from 'lodash';
import PropTypes from 'prop-types';
import React from 'react';
import { TableCell } from '@mui/material';
const MultipleTableFieldCells = ({index}: {index: number}) => {
const { info, info: {indices} } = useFieldInfo()
const newIndices = { ...indices, [info.field.elementName || 0]: index }
return (
{
info.field.fields?.map((field, index) => (
))
}
)
}
MultipleTableFieldCells.propTypes = {
row : PropTypes.shape({
id: PropTypes.number.isRequired,
values: PropTypes.object.isRequired
}),
}
export default MultipleTableFieldCells