mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
23 lines
508 B
TypeScript
23 lines
508 B
TypeScript
import React from 'react';
|
|
|
|
import SearchBar from 'ui/snippets/searchBar/SearchBarDesktop';
|
|
|
|
type Props = {
|
|
renderSearchBar?: () => React.ReactNode;
|
|
};
|
|
|
|
const HeaderDesktop = ({ renderSearchBar }: Props) => {
|
|
|
|
const searchBar = renderSearchBar ? renderSearchBar() : <SearchBar/>;
|
|
|
|
return (
|
|
<header className="hidden lg:flex w-full items-center justify-center gap-6">
|
|
<div className="w-full">
|
|
{ searchBar }
|
|
</div>
|
|
</header>
|
|
);
|
|
};
|
|
|
|
export default React.memo(HeaderDesktop);
|