mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 01:10:14 +01:00
feat: Add category and support contact fields to Agent schema and UI components
Revert "feat: Add category and support contact fields to Agent schema and UI components"
This reverts commit c43a52b4c9.
Fix: Update import for renderHook in useAgentCategories.spec.tsx
fix: Update icon rendering in AgentCategoryDisplay tests to use empty spans
refactor: Improve category synchronization logic and clean up AgentConfig component
refactor: Remove unused UI flow translations from translation.json
feat: agent marketplace features
33 lines
939 B
TypeScript
33 lines
939 B
TypeScript
import { TooltipAnchor, Button } from '~/components/ui';
|
|
import { Sidebar } from '~/components/svg';
|
|
import { useLocalize } from '~/hooks';
|
|
|
|
export default function OpenSidebar({
|
|
setNavVisible,
|
|
}: {
|
|
setNavVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
}) {
|
|
const localize = useLocalize();
|
|
return (
|
|
<TooltipAnchor
|
|
description={localize('com_nav_open_sidebar')}
|
|
render={
|
|
<Button
|
|
size="icon"
|
|
variant="outline"
|
|
data-testid="open-sidebar-button"
|
|
aria-label={localize('com_nav_open_sidebar')}
|
|
className="rounded-xl border border-border-light bg-surface-secondary p-2 hover:bg-surface-hover"
|
|
onClick={() =>
|
|
setNavVisible((prev) => {
|
|
localStorage.setItem('navVisible', JSON.stringify(!prev));
|
|
return !prev;
|
|
})
|
|
}
|
|
>
|
|
<Sidebar />
|
|
</Button>
|
|
}
|
|
/>
|
|
);
|
|
}
|