components.widgets.Form.fieldsets.LineFieldset.LineFieldset.jsx Maven / Gradle / Ivy
The newest version!
import React from 'react'
import PropTypes from 'prop-types'
import CollapseFieldset from '../CollapseFieldset/CollapseFieldSet'
import TitleFieldset from '../TitleFieldset/TitleFieldset'
import { withFieldsetHeader } from '../withFieldsetHeader'
function LineFieldset({
render,
rows,
type,
label,
expand,
className,
hasSeparator,
description,
help,
disabled,
collapsible,
badge,
}) {
const commonProps = {
render,
rows,
label,
className,
hasSeparator,
description,
help,
disabled,
badge,
type,
}
if (collapsible) { return }
return
}
LineFieldset.defaultProps = {
visible: true,
hasSeparator: true,
disabled: false,
}
LineFieldset.propTypes = {
render: PropTypes.func,
rows: PropTypes.array,
label: PropTypes.string,
collapsible: PropTypes.bool,
type: PropTypes.string,
expand: PropTypes.bool,
className: PropTypes.string,
help: PropTypes.string,
hasSeparator: PropTypes.bool,
visible: PropTypes.string,
disabled: PropTypes.bool,
description: PropTypes.string,
activeModel: PropTypes.object,
badge: PropTypes.object,
}
export default withFieldsetHeader(LineFieldset)