"use client"; import { Primitive } from "../../utils/Primitive"; import { type ComponentRef, forwardRef, type ComponentPropsWithoutRef, } from "react"; import { useAuiState } from "@assistant-ui/store"; type PrimitiveDivProps = ComponentPropsWithoutRef; export namespace ThreadListItemPrimitiveRoot { export type Element = ComponentRef; export type Props = PrimitiveDivProps; } export const ThreadListItemPrimitiveRoot = forwardRef< ThreadListItemPrimitiveRoot.Element, ThreadListItemPrimitiveRoot.Props >((props, ref) => { const isMain = useAuiState( (s) => s.threads.mainThreadId === s.threadListItem.id, ); return ( ); }); ThreadListItemPrimitiveRoot.displayName = "ThreadListItemPrimitive.Root";