"use client"; import { Primitive } from "../../utils/Primitive"; import { type ComponentRef, forwardRef, type ComponentPropsWithoutRef, } from "react"; import { MessagePrimitiveIf as If } from "../message/MessageIf"; export namespace BranchPickerPrimitiveRoot { export type Element = ComponentRef; export type Props = ComponentPropsWithoutRef & { /** * Whether to hide the branch picker when there's only one branch available. * When true, the component will only render when multiple branches exist. * @default false */ hideWhenSingleBranch?: boolean | undefined; }; } /** * The root container for branch picker components. * * This component provides a container for branch navigation controls, * with optional conditional rendering based on the number of available branches. * It integrates with the message branching system to allow users to navigate * between different response variations. * * @example * ```tsx * * * * * * ``` */ export const BranchPickerPrimitiveRoot = forwardRef< BranchPickerPrimitiveRoot.Element, BranchPickerPrimitiveRoot.Props >(({ hideWhenSingleBranch, ...rest }, ref) => { return ( ); }); BranchPickerPrimitiveRoot.displayName = "BranchPickerPrimitive.Root";