import classNames from 'classnames'; import * as React from 'react'; import { FormattedMessage } from 'react-intl'; import { useDispatch } from 'react-redux'; import { Link } from 'react-router-dom'; import { Avatar, Button, Icon } from 'soapbox/components/ui'; import Search from 'soapbox/features/compose/components/search'; import ThemeToggle from 'soapbox/features/ui/components/theme_toggle'; import { useOwnAccount, useSoapboxConfig, useSettings, useFeatures } from 'soapbox/hooks'; import { openSidebar } from '../../../actions/sidebar'; import ProfileDropdown from './profile-dropdown'; const Navbar = () => { const dispatch = useDispatch(); const node = React.useRef(null); const account = useOwnAccount(); const settings = useSettings(); const features = useFeatures(); const soapboxConfig = useSoapboxConfig(); const singleUserMode = soapboxConfig.get('singleUserMode'); // In demo mode, use the Soapbox logo const logo = settings.get('demo') ? require('images/soapbox-logo.svg') : soapboxConfig.logo; const onOpenSidebar = () => dispatch(openSidebar()); return ( ); }; export default Navbar;