components.widgets.Form.FieldsetRow.jsx Maven / Gradle / Ivy
The newest version!
import React from 'react'
import PropTypes from 'prop-types'
import { pure } from 'recompose'
import { Row } from 'reactstrap'
// eslint-disable-next-line import/no-cycle
import { FieldsetCol } from './FieldsetCol'
function FieldsetRow({ rowId, row, activeModel, ...rest }) {
return (
{row.cols &&
row.cols.map((col, colId) => (
))}
)
}
FieldsetRow.propTypes = {
rowId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
row: PropTypes.object,
colId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
activeModel: PropTypes.object,
}
export default pure(FieldsetRow)