components.widgets.Form.fieldsets.withFieldsetHeader.jsx Maven / Gradle / Ivy
The newest version!
import React from 'react'
import classNames from 'classnames'
import { useResolved } from '../../../../core/Expression/useResolver'
import { FieldsetHeader } from './FieldsetHeader'
export function withFieldsetHeader(Component) {
function WithFieldsetHeaderComponent({
className,
style,
needLabel,
needDescription,
description,
label,
help,
type,
childrenLabel,
enabled,
activeModel,
render,
visible,
badge: badgeProps,
...rest
}) {
const badge = useResolved(badgeProps, activeModel)
return (
)
}
return WithFieldsetHeaderComponent
}