diff --git a/packages/gitbook/src/components/Search/SearchAskAnswer.tsx b/packages/gitbook/src/components/Search/SearchAskAnswer.tsx index 8b0c80393..7e8f83bd2 100644 --- a/packages/gitbook/src/components/Search/SearchAskAnswer.tsx +++ b/packages/gitbook/src/components/Search/SearchAskAnswer.tsx @@ -1,21 +1,19 @@ 'use client'; -import { Icon } from '@gitbook/icons'; -import { readStreamableValue } from 'ai/rsc'; -import React from 'react'; - -import { Loading } from '@/components/primitives'; import { useLanguage } from '@/intl/client'; import { t } from '@/intl/translate'; import type { TranslationLanguage } from '@/intl/translations'; import { tcls } from '@/lib/tailwind'; +import { Icon } from '@gitbook/icons'; +import { readStreamableValue } from 'ai/rsc'; +import React from 'react'; +import { motion } from 'framer-motion'; import { useTrackEvent } from '../Insights'; import { Link } from '../primitives'; import { useSearchAskContext } from './SearchAskContext'; import { type AskAnswerResult, type AskAnswerSource, streamAskQuestion } from './server-actions'; import { useSearch, useSearchLink } from './useSearch'; - export type SearchAskState = | { type: 'answer'; @@ -88,13 +86,22 @@ export function SearchAskAnswer(props: { query: string }) { }, [setAskState]); const loading = ( -