mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-06-27 18:01:21 +00:00
* UI Design update * Add an error icon next to the avatar. * fix * Change the style of buttons * fix: avatar
20 lines
748 B
TypeScript
20 lines
748 B
TypeScript
import { useOutletContext } from 'react-router-dom';
|
|
import type { ContextType } from '~/common';
|
|
import { EndpointsMenu, PresetsMenu, HeaderNewChat } from './Menus';
|
|
import HeaderOptions from './Input/HeaderOptions';
|
|
|
|
export default function Header() {
|
|
const { navVisible } = useOutletContext<ContextType>();
|
|
return (
|
|
<div className="sticky top-0 z-10 flex h-14 w-full items-center justify-between bg-white p-2 font-semibold dark:bg-gray-800 dark:text-white">
|
|
<div className="hide-scrollbar flex items-center gap-2 overflow-x-auto">
|
|
{!navVisible && <HeaderNewChat />}
|
|
<EndpointsMenu />
|
|
<HeaderOptions />
|
|
<PresetsMenu />
|
|
</div>
|
|
{/* Empty div for spacing */}
|
|
<div />
|
|
</div>
|
|
);
|
|
}
|