Biome: fixes for hooks & lib directory

This commit is contained in:
Utkarsh-Patel-13 2025-07-27 10:44:27 -07:00
parent 2950573271
commit 3164c0c8cc
10 changed files with 21 additions and 20 deletions

View file

@ -1,5 +1,5 @@
import { useState, useEffect, useCallback } from "react";
import type { Message } from "@ai-sdk/react";
import { useCallback, useEffect, useState } from "react";
import type { ResearchMode } from "@/components/chat";
import type { Document } from "@/hooks/use-documents";
@ -8,7 +8,7 @@ interface UseChatStateProps {
chat_id?: string;
}
export function useChatState({ search_space_id, chat_id }: UseChatStateProps) {
export function useChatState({ chat_id }: UseChatStateProps) {
const [token, setToken] = useState<string | null>(null);
const [isLoading, setIsLoading] = useState(false);
const [currentChatId, setCurrentChatId] = useState<string | null>(chat_id || null);