import { HStack, Box } from '@chakra-ui/react'; import React from 'react'; import config from 'configs/app'; import RewardsButton from 'ui/rewards/RewardsButton'; import SearchBar from 'ui/snippets/searchBar/SearchBarDesktop'; import UserProfileDesktop from 'ui/snippets/user/UserProfileDesktop'; type Props = { renderSearchBar?: () => React.ReactNode; }; const HeaderDesktop = ({ renderSearchBar }: Props) => { const searchBar = renderSearchBar ? renderSearchBar() : ; return ( { searchBar } { config.UI.navigation.layout === 'vertical' && ( { config.features.rewards.isEnabled && } ) } ); }; export default React.memo(HeaderDesktop);