mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2025-12-11 20:15:30 +01:00
32 lines
820 B
TypeScript
32 lines
820 B
TypeScript
import { Ref } from 'react';
|
|
import { NavigationButtons } from './NavigationButtons';
|
|
import SearchBar from './SearchBar';
|
|
|
|
export const TOP_BAR_HEIGHT = 46;
|
|
|
|
interface Props {
|
|
leftRef?: Ref<HTMLDivElement>;
|
|
rightRef?: Ref<HTMLDivElement>;
|
|
}
|
|
|
|
const TopBar = (props: Props) => (
|
|
<div
|
|
data-tauri-drag-region
|
|
className="
|
|
duration-250 top-bar-blur absolute left-0 top-0 z-50 flex
|
|
h-[46px] w-full flex-row items-center justify-center overflow-hidden
|
|
border-b border-sidebar-divider bg-app/90 px-3.5
|
|
transition-[background-color,border-color] ease-out
|
|
"
|
|
>
|
|
<div data-tauri-drag-region className="flex flex-1 flex-row items-center">
|
|
<NavigationButtons />
|
|
<div ref={props.leftRef} />
|
|
</div>
|
|
<SearchBar />
|
|
<div className="flex-1" ref={props.rightRef} />
|
|
</div>
|
|
);
|
|
|
|
export default TopBar;
|