From 90cb4432ecd0853db85b83153e336e8ecab6bd24 Mon Sep 17 00:00:00 2001 From: Heather Buchel Date: Tue, 12 Nov 2024 01:00:28 -0500 Subject: [PATCH] remove unused imports (#6052) --- .../components/ai/ai-conversation-renderer/index.page.tsx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/examples/next/pages/ui/components/ai/ai-conversation-renderer/index.page.tsx b/examples/next/pages/ui/components/ai/ai-conversation-renderer/index.page.tsx index de2235c80af..6c65c50c901 100644 --- a/examples/next/pages/ui/components/ai/ai-conversation-renderer/index.page.tsx +++ b/examples/next/pages/ui/components/ai/ai-conversation-renderer/index.page.tsx @@ -1,17 +1,12 @@ import { Amplify } from 'aws-amplify'; -import { createAIHooks, AIConversation } from '@aws-amplify/ui-react-ai'; -import { generateClient } from 'aws-amplify/api'; +import { AIConversation } from '@aws-amplify/ui-react-ai'; import '@aws-amplify/ui-react/styles.css'; import outputs from './amplify_outputs'; -import type { Schema } from '@environments/ai/gen2/amplify/data/resource'; import { Authenticator, Card, Text } from '@aws-amplify/ui-react'; import Image from 'next/image'; import { INITIAL_MESSAGES } from '../constants'; -const client = generateClient({ authMode: 'userPool' }); -const { useAIConversation } = createAIHooks(client); - Amplify.configure(outputs); function arrayBufferToBase64(buffer: ArrayBuffer) {