import React from "react";
import cn from "classnames";

interface IPopoverBodyProps extends React.HTMLAttributes<HTMLDivElement>{
  ["data-testid"]?: string;
}

const PopoverBody: React.FC<IPopoverBodyProps> = ({
  className,
  children,
  "data-testid": testId = "honeyui-popover-body",
  ...rest
}) => {
  return (
    <div {...rest} className={cn("popover-body", className)} data-testid={testId}>
      {children}
    </div>
  );
};

PopoverBody.displayName = "PopoverBody";
PopoverBody.defaultProps = {};
export default PopoverBody;
