llama-gpt/components/Chatbar/Chatbar.state.tsx

12 lines
252 B
TypeScript

import { Conversation } from '@/types/chat';
export interface ChatbarInitialState {
searchTerm: string;
filteredConversations: Conversation[];
}
export const initialState: ChatbarInitialState = {
searchTerm: '',
filteredConversations: [],
};