mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-29 06:38:50 +01:00
* BIG UI UPDATE * fix: search bar, dialog template, new chat icon, convo icon and delete/rename button * moved some color config and a lot of files * small text fixes and tailwind config refactor * Update localization and UI styles * Update styles and add user-select:none to Tooltip component * Update mobile.css styles for navigation mask and background color * Update component imports and styles * Update DeleteButton imports and references * Update UI components * Update tooltip delay duration * Fix styling and update text in various components * fixed assistant style * minor style fixes * revert: removed CreationHeader & CreationPanel * style: match new styling for SidePanel * style: match bg-gray-800 to ChatGPT (#212121) * style: remove slate for gray where applicable to match new light theme --------- Co-authored-by: Danny Avila <messagedaniel@protonmail.com>
21 lines
620 B
TypeScript
21 lines
620 B
TypeScript
import { forwardRef } from 'react';
|
|
import { LogOutIcon } from '../svg';
|
|
import { useAuthContext } from '~/hooks/AuthContext';
|
|
import { useLocalize } from '~/hooks';
|
|
|
|
const Logout = forwardRef(() => {
|
|
const { logout } = useAuthContext();
|
|
const localize = useLocalize();
|
|
|
|
return (
|
|
<button
|
|
className="flex w-full cursor-pointer items-center gap-3 px-3 py-3 text-sm text-black transition-colors duration-200 hover:bg-gray-100 dark:text-white dark:hover:bg-gray-700"
|
|
onClick={() => logout()}
|
|
>
|
|
<LogOutIcon />
|
|
{localize('com_nav_log_out')}
|
|
</button>
|
|
);
|
|
});
|
|
|
|
export default Logout;
|