import h from '../shared/h.js'
import { isPublish } from '../shared/wcm-mode.js'

export function ContentOwner ({ _model, ...props }) {
  const { title } = _model

  if (isPublish) {
    return null
  }

  return h('div', { ...props, className: 'pal-system-solid bg-bga text-txa px-6 py-4 text-sm' },
    h('span', { className: 'font-bold' }, 'Owner: '),
    title
  )
}
