UNPKG

@assistant-ui/react

Version:

Open-source TypeScript/React library for building production-grade AI chat experiences

13 lines (12 loc) • 550 B
"use client"; import { createActionButton } from "../../utils/createActionButton.js"; import { useThreadListLoadMore } from "@assistant-ui/core/react"; // src/primitives/threadList/ThreadListLoadMore.tsx const useThreadListLoadMore$1 = () => { const { loadMore, disabled } = useThreadListLoadMore(); if (disabled) return null; return loadMore; }; const ThreadListPrimitiveLoadMore = createActionButton("ThreadListPrimitive.LoadMore", useThreadListLoadMore$1); export { ThreadListPrimitiveLoadMore }; //# sourceMappingURL=ThreadListLoadMore.js.map