import React from 'react'
import PropTypes from 'prop-types'
import { View } from 'react-native'

// Since there's no equivalent for web's <label> element we're simply rendering whatever is passed to this component.
export const LabelContent = React.forwardRef(({ children }, ref) =>
  ref ? <View ref={ref}>{children}</View> : children
)
LabelContent.displayName = 'LabelContent'

LabelContent.propTypes = {
  children: PropTypes.node
}
