Skip to content
Draft
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
14 changes: 13 additions & 1 deletion src/pages/Home/components/Portfolio/Prompt/Prompt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
Scrollbars,
Grow,
Backdrop,
TrashIcon,
} from '@avalabs/core-k2-components';
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { functionDeclarations, systemPromptTemplate } from './models';
Expand Down Expand Up @@ -672,13 +673,24 @@ export function Prompt() {
{isTyping && <TypingAvatar />}
</Stack>
</Scrollbars>
<Stack sx={{ p: 2 }}>
<Stack sx={{ p: 2, flexDirection: 'row', alignItems: 'center' }}>
<UserInput
input={input}
setInput={setInput}
setPrompt={prompt}
userMessages={userMessages}
/>
<TrashIcon
sx={{ marginX: 1 }}
onClick={() => {
setPrompts([
{
role: 'model',
content: `Hey there! I'm Core AI, here to help you manage your assets safely and smoothly. What can I do for you today?`,
},
]);
}}
/>
</Stack>
</Stack>
</Backdrop>
Expand Down
Loading