function AccordionHeader(props) {
  const {
    className,
    cssModule,
    tag: Tag = 'h2',
    innerRef,
    children,
    targetId,
    ...attributes
  } = props;
  const { open, toggle } = useContext(AccordionContext);

  const classes = mapToCssModules(
    classNames(className, 'accordion-header'),
    cssModule,
  );

  const buttonClasses = mapToCssModules(
    classNames('accordion-button', {
      collapsed: !(Array.isArray(open)
        ? open.includes(targetId)
        : open === targetId),
    }),
    cssModule,
  );

  return (
    <Tag {...attributes} className={classes} ref={innerRef}>
      <button
        type="button"
        className={buttonClasses}
        onClick={() => toggle(targetId)}
      >
        {children}
      </button>
    </Tag>
  );
}
Unique key used to control item's collapse/expand