-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functioncalling as one of the status and fix bugs
- Loading branch information
Showing
3 changed files
with
140 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Avatar } from "../Common/Avatar"; | ||
import useAuthUser from "@/common/hooks/useAuthUser"; | ||
|
||
interface CopilotTempMessageProps { | ||
message: string; | ||
} | ||
|
||
export function CopilotTempMessage({ message }: CopilotTempMessageProps) { | ||
if (!message.trim()) return null; | ||
|
||
const authUser = useAuthUser(); | ||
Check failure on line 11 in src/components/Copilot/CopilotTempMessage.tsx GitHub Actions / lint
|
||
|
||
return ( | ||
<div className="flex flex-row-reverse justify-end gap-2"> | ||
<div className="shrink-0"> | ||
<Avatar | ||
name={authUser.first_name} | ||
imageUrl={authUser.read_profile_picture_url} | ||
className="h-8 shrink-0 rounded-full" | ||
/> | ||
</div> | ||
<div className="flex flex-1 justify-end"> | ||
<div className="inline-block rounded-xl border border-transparent bg-gradient-to-tr from-blue-500 to-primary-400 px-4 py-2 text-white"> | ||
{message} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters