2023-07-26 11:31:59 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import './header.scss';
|
|
|
|
import HeaderTitle from '../header-title/header-title';
|
|
|
|
import HeaderAccount from '../header-account/header-account';
|
|
|
|
import Tabs from '../tabs/tabs';
|
2023-07-26 14:58:22 +00:00
|
|
|
import Search from '../search/search';
|
2023-07-26 11:31:59 +00:00
|
|
|
|
|
|
|
export interface HeaderProps {
|
|
|
|
selectedTab?: string | undefined;
|
|
|
|
setSelectedTab: ( value: string ) => void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default function Header( props: HeaderProps ) {
|
|
|
|
const { selectedTab, setSelectedTab } = props;
|
|
|
|
return (
|
|
|
|
<header className="woocommerce-marketplace__header">
|
|
|
|
<HeaderTitle />
|
|
|
|
<Tabs
|
|
|
|
additionalClassNames={ [
|
|
|
|
'woocommerce-marketplace__header-tabs',
|
|
|
|
] }
|
|
|
|
selectedTab={ selectedTab }
|
|
|
|
setSelectedTab={ setSelectedTab }
|
|
|
|
/>
|
|
|
|
<div className="woocommerce-marketplace__header-meta">
|
|
|
|
<HeaderAccount />
|
|
|
|
</div>
|
2023-07-26 14:58:22 +00:00
|
|
|
<Search />
|
2023-07-26 11:31:59 +00:00
|
|
|
</header>
|
|
|
|
);
|
|
|
|
}
|