d836a10af1
Co-authored-by: Douwe Osinga <douwe@squareup.com> Co-authored-by: Zane <75694352+zanesq@users.noreply.github.com> Co-authored-by: Zane Staggs <zane@squareup.com>
29 lines
632 B
TypeScript
29 lines
632 B
TypeScript
import 'react-toastify/dist/ReactToastify.css';
|
|
|
|
import { ChatType } from '../types/chat';
|
|
import BaseChat2 from './BaseChat2';
|
|
|
|
interface PairProps {
|
|
setChat: (chat: ChatType) => void;
|
|
setIsGoosehintsModalOpen: (isOpen: boolean) => void;
|
|
sessionId: string;
|
|
initialMessage?: string;
|
|
}
|
|
|
|
export default function Pair({
|
|
setChat,
|
|
setIsGoosehintsModalOpen,
|
|
sessionId,
|
|
initialMessage,
|
|
}: PairProps) {
|
|
return (
|
|
<BaseChat2
|
|
setChat={setChat}
|
|
setIsGoosehintsModalOpen={setIsGoosehintsModalOpen}
|
|
sessionId={sessionId}
|
|
initialMessage={initialMessage}
|
|
suppressEmptyState={false}
|
|
/>
|
|
);
|
|
}
|