Skip to content

An AI-powered search engine with a generative UI

Fix import paths in code

Yoshiki Miura8dea880afbd5
diff --git a/app/action.tsx b/app/actions.tsx
similarity index 100%
rename from app/action.tsx
rename to app/actions.tsx
diff --git a/app/page.tsx b/app/page.tsx
index f6e3975d..e39980fd 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -1,6 +1,6 @@
import { Chat } from '@/components/chat'
import { nanoid } from 'ai'
-import { AI } from './action'
+import { AI } from './actions'
export const runtime = 'edge'
diff --git a/app/search/[id]/page.tsx b/app/search/[id]/page.tsx
index 40a38173..7feeab66 100644
--- a/app/search/[id]/page.tsx
+++ b/app/search/[id]/page.tsx
@@ -1,7 +1,7 @@
import { notFound, redirect } from 'next/navigation'
import { Chat } from '@/components/chat'
import { getChat } from '@/lib/actions/chat'
-import { AI } from '@/app/action'
+import { AI } from '@/app/actions'
export const runtime = 'edge'
diff --git a/components/chat-messages.tsx b/components/chat-messages.tsx
index 0e9d0a4a..3d7e5568 100644
--- a/components/chat-messages.tsx
+++ b/components/chat-messages.tsx
@@ -1,5 +1,5 @@
import { StreamableValue, useUIState } from 'ai/rsc'
-import type { AI, UIState } from '@/app/action'
+import type { AI, UIState } from '@/app/actions'
import { CollapsibleMessage } from './collapsible-message'
interface ChatMessagesProps {
diff --git a/components/chat-panel.tsx b/components/chat-panel.tsx
index 4bd46872..8d75fc15 100644
--- a/components/chat-panel.tsx
+++ b/components/chat-panel.tsx
@@ -1,6 +1,6 @@
import { useEffect, useState, useRef } from 'react'
import { useRouter } from 'next/navigation'
-import type { AI, UIState } from '@/app/action'
+import type { AI, UIState } from '@/app/actions'
import { useUIState, useActions } from 'ai/rsc'
import { cn } from '@/lib/utils'
import { UserMessage } from './user-message'
diff --git a/components/copilot.tsx b/components/copilot.tsx
index 5d19dca5..0c2887ea 100644
--- a/components/copilot.tsx
+++ b/components/copilot.tsx
@@ -8,7 +8,7 @@ import { Button } from './ui/button'
import { Card } from './ui/card'
import { ArrowRight, Check, FastForward, Sparkles } from 'lucide-react'
import { useActions, useStreamableValue, useUIState } from 'ai/rsc'
-import type { AI } from '@/app/action'
+import type { AI } from '@/app/actions'
import { IconLogo } from './ui/icons'
import { cn } from '@/lib/utils'
diff --git a/components/followup-panel.tsx b/components/followup-panel.tsx
index 3afa00f6..68b85e83 100644
--- a/components/followup-panel.tsx
+++ b/components/followup-panel.tsx
@@ -4,7 +4,7 @@ import { useState } from 'react'
import { Button } from './ui/button'
import { Input } from './ui/input'
import { useActions, useUIState } from 'ai/rsc'
-import type { AI } from '@/app/action'
+import type { AI } from '@/app/actions'
import { UserMessage } from './user-message'
import { ArrowRight } from 'lucide-react'
diff --git a/components/search-related.tsx b/components/search-related.tsx
index b61e4029..5a3f04ee 100644
--- a/components/search-related.tsx
+++ b/components/search-related.tsx
@@ -9,7 +9,7 @@ import {
useUIState,
readStreamableValue
} from 'ai/rsc'
-import { AI } from '@/app/action'
+import { AI } from '@/app/actions'
import { UserMessage } from './user-message'
import { PartialRelated } from '@/lib/schema/related'