27 lines
613 B
TypeScript
27 lines
613 B
TypeScript
/**
|
|
* External dependencies
|
|
*/
|
|
import { useState } from '@wordpress/element';
|
|
|
|
/**
|
|
* Internal dependencies
|
|
*/
|
|
import './marketplace.scss';
|
|
import { DEFAULT_TAB_KEY } from './components/constants';
|
|
import Header from './components/header/header';
|
|
import Content from './components/content/content';
|
|
|
|
export default function Marketplace() {
|
|
const [ selectedTab, setSelectedTab ] = useState( DEFAULT_TAB_KEY );
|
|
|
|
return (
|
|
<div className="woocommerce-marketplace">
|
|
<Header
|
|
selectedTab={ selectedTab }
|
|
setSelectedTab={ setSelectedTab }
|
|
/>
|
|
<Content selectedTab={ selectedTab } />
|
|
</div>
|
|
);
|
|
}
|