function MDXProvider(properties) {
  /** @type {Readonly<MDXComponents>} */
  let allComponents

  if (properties.disableParentContext) {
    allComponents =
      typeof properties.components === 'function'
        ? properties.components(emptyComponents)
        : properties.components || emptyComponents
  } else {
    allComponents = useMDXComponents(properties.components)
  }

  return h(
    MDXContext.Provider,
    {children: undefined, value: allComponents},
    properties.children
  )
}
Provider for MDX context.

@param {Readonly<Props>} properties
  Properties.
@returns {VNode}
  Element.
@satisfies {Component}