UNPKG

@assistant-ui/react

Version:

React components for AI chat.

15 lines (14 loc) 377 B
"use client"; // src/primitives/thread/ThreadEmpty.tsx import { useThreadEmpty } from "../../primitive-hooks/index.mjs"; var ThreadPrimitiveEmpty = ({ children }) => { const empty = useThreadEmpty(); return empty ? children : null; }; ThreadPrimitiveEmpty.displayName = "ThreadPrimitive.Empty"; export { ThreadPrimitiveEmpty }; //# sourceMappingURL=ThreadEmpty.mjs.map