Merge remote-tracking branch 'origin/mincy'
This commit is contained in:
commit
db99d625c4
1 changed files with 23 additions and 23 deletions
|
|
@ -1,9 +1,8 @@
|
|||
import React from "react";
|
||||
import DeleteButton from "src/components/ui/button/delete-button";
|
||||
import SchematicButton from "../button/schematic-button";
|
||||
import React, { useMemo, useState } from "react";
|
||||
import { motion } from "motion/react";
|
||||
import { Rocket } from "lucide-react";
|
||||
import DeleteButton from "src/components/ui/button/delete-button";
|
||||
import SchematicButton from "../button/schematic-button";
|
||||
|
||||
export default function ChatHeader({ title = "Title of Chat" }) {
|
||||
const isDebug = useMemo(() => {
|
||||
|
|
@ -27,17 +26,17 @@ export default function ChatHeader({ title = "Title of Chat" }) {
|
|||
setIngesting(false);
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="w-full flex justify-center">
|
||||
<header className="text-slate-100 fixed top-4 max-w-3xl w-full px-4">
|
||||
<div className="flex justify-between items-center gap-4">
|
||||
<SchematicButton></SchematicButton>
|
||||
<header className="text-slate-100 fixed top-4 ">
|
||||
<SchematicButton />
|
||||
<div className="flex items-center gap-3">
|
||||
<h1 className="text-lg font-semibold shadow-md shadow-indigo-600 bg-gray-900 px-6 py-2 rounded-4xl border-2 border-gray-800">
|
||||
{title}
|
||||
</h1>
|
||||
<DeleteButton></DeleteButton>
|
||||
<DeleteButton />
|
||||
{isDebug && (
|
||||
<motion.button
|
||||
onClick={triggerDemoIngest}
|
||||
|
|
@ -51,6 +50,7 @@ export default function ChatHeader({ title = "Title of Chat" }) {
|
|||
</motion.button>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
{toast && (
|
||||
<div className="mt-2 text-xs text-slate-300 bg-gray-800/80 border border-gray-700 rounded px-2 py-1 inline-block">
|
||||
{toast}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue