import payloadHeader from "./payloadHeader"

export default (type, props = {}) => {
  const header = payloadHeader({
    ...props,
    ...{ _type: type },
  })

  return {
    ...header,
    _meta: {},
    _source: props,
  }
}
