@assistant-ui/react
Version:
Typescript/React library for AI Chat
21 lines • 828 B
TypeScript
import type { FC, PropsWithChildren } from "react";
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;
};
type UseMessageIfProps = RequireAtLeastOne<MessageIfFilters>;
export declare namespace MessagePrimitiveIf {
type Props = PropsWithChildren<UseMessageIfProps>;
}
export declare const MessagePrimitiveIf: FC<MessagePrimitiveIf.Props>;
export {};
//# sourceMappingURL=MessageIf.d.ts.map