import { FC } from "react"
import RenderPanelSetter from "../PanelSetter"
import { RenderFieldAndLabelProps } from "./interface"

const RenderFieldAndLabel: FC<RenderFieldAndLabelProps> = (props) => {
  const { config, displayName, parentAttrName } = props

  return (
    <RenderPanelSetter
      config={config}
      displayName={displayName}
      parentAttrName={parentAttrName}
    />
  )
}

RenderFieldAndLabel.displayName = "RenderFieldAndLabel"

export default RenderFieldAndLabel
