Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 10 additions & 18 deletions components/suggested-actions.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
'use client';

import type { ChatRequestOptions, CreateMessage, Message } from 'ai';
import { motion } from 'framer-motion';
import { Button } from './ui/button';
import { ChatRequestOptions, CreateMessage, Message } from 'ai';
import { memo } from 'react';

import { Button } from './ui/button';

interface SuggestedActionsProps {
chatId: string;
append: (
Expand All @@ -16,24 +17,15 @@ interface SuggestedActionsProps {
function PureSuggestedActions({ chatId, append }: SuggestedActionsProps) {
const suggestedActions = [
{
title: 'What are the advantages',
label: 'of using Next.js?',
action: 'What are the advantages of using Next.js?',
},
{
title: 'Write code to',
label: `demonstrate djikstra's algorithm`,
action: `Write code to demonstrate djikstra's algorithm`,
},
{
title: 'Help me write an essay',
label: `about silicon valley`,
action: `Help me write an essay about silicon valley`,
title: 'In Ethereum, which functions should I call to',
label: 'transfer USDC with the following contract?',
action:
'In Ethereum, which functions should I call to transfer USDC with the following contract? [0x43506849d7c04f9138d1a2050bbf3a0c054402dd]',
},
{
title: 'What is the weather',
label: 'in San Francisco?',
action: 'What is the weather in San Francisco?',
title: 'According to details of this Ethereum transaction',
label: 'what do you think is this about in one paragraph?',
action: `According to details of this Ethereum transaction what do you think is this about in one paragraph? [0x479635fa05bf2fecd6fdbb2ced34dcd53b0be323ee4086972617ed7711bbc5f2]`,
},
];

Expand Down