@assistant-ui/react
Version:
React components for AI chat.
17 lines • 686 B
TypeScript
import type { RequireAtLeastOne } from "../../utils/RequireAtLeastOne";
type MessageIfFilters = {
user: boolean | undefined;
assistant: boolean | undefined;
system: boolean | undefined;
hasBranches: boolean | undefined;
copied: boolean | undefined;
lastOrHover: boolean | undefined;
speaking: boolean | undefined;
hasAttachments: boolean | undefined;
hasContent: boolean | undefined;
submittedFeedback: "positive" | "negative" | null | undefined;
};
export type UseMessageIfProps = RequireAtLeastOne<MessageIfFilters>;
export declare const useMessageIf: (props: UseMessageIfProps) => boolean;
export {};
//# sourceMappingURL=useMessageIf.d.ts.map