mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
18 lines
557 B
JavaScript
18 lines
557 B
JavaScript
import React from 'react';
|
|
import SearchBar from './SearchBar';
|
|
import ClearConvos from './ClearConvos';
|
|
import DarkMode from './DarkMode';
|
|
import Logout from './Logout';
|
|
import { useSelector } from 'react-redux';
|
|
|
|
export default function NavLinks({ fetch, onSearchSuccess, clearSearch }) {
|
|
const { searchEnabled } = useSelector((state) => state.search);
|
|
return (
|
|
<>
|
|
{ !!searchEnabled && <SearchBar fetch={fetch} onSuccess={onSearchSuccess} clearSearch={clearSearch}/>}
|
|
<DarkMode />
|
|
<ClearConvos />
|
|
<Logout />
|
|
</>
|
|
);
|
|
}
|