n {
      children: PropTypes.node,
      title: PropTypes.string.isRequired,
    };
  }

  render() {
    const { children, title } = this.props;
    const isEmpty = !children || children.length === 0;

    return section(
      {
        className: `manifest-section ${
          isEmpty ? "manifest-section--empty" : ""
        }`,
      },
      h2({ className: "manifest-section__title" }, title),
      children
    );
  }
}

// Exports
module.exports = ManifestSection;
PK