The Open Standard for Generative UI
import clsx from "clsx";
import { CSSProperties, forwardRef, ReactElement } from "react";
import { FollowUpItemProps } from "../FollowUpItem";
export interface FollowUpBlockProps extends React.HTMLAttributes<HTMLDivElement> {
children: ReactElement<FollowUpItemProps> | ReactElement<FollowUpItemProps>[];
className?: string;
style?: CSSProperties;
}
const FollowUpBlock = forwardRef<HTMLDivElement, FollowUpBlockProps>((props, ref) => {
const { children, className, style, ...rest } = props;
return (
<div ref={ref} className={clsx("openui-follow-up-block", className)} style={style} {...rest}>
<div className="openui-follow-up-block__header">Related Queries</div>
{children}
</div>
);
});
FollowUpBlock.displayName = "FollowUpBlock";
export { FollowUpBlock };