Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
cs50victor committed Feb 22, 2024
1 parent 91cac30 commit 37c1bf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/ChatTile.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use client';
import { ChatMessage } from '~/components/ChatMessage';
import { ChatMessageInput } from '~/components/ChatMessageInput';
import { ChatMessage as ComponentsChatMessage } from '@livekit/components-react';
import { ChatMessage as ComponentsChatMessage, useChat } from '@livekit/components-react';
import { useEffect, useRef } from 'react';

const inputHeight = 48;
Expand All @@ -16,7 +16,7 @@ export type ChatMessageType = {
type ChatTileProps = {
messages: ChatMessageType[];
accentColor: string;
onSend?: (message: string) => Promise<ComponentsChatMessage>;
onSend?: ReturnType<typeof useChat>['send'];
};

export const ChatTile = ({ messages, accentColor, onSend }: ChatTileProps) => {
Expand Down

0 comments on commit 37c1bf0

Please sign in to comment.