mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
21 lines
565 B
JavaScript
21 lines
565 B
JavaScript
import Container from '../../ReusableComponents/Container';
|
|
import SettingsNavigation from './Components/Navigation';
|
|
import { getSettingsTabs } from './Tabs';
|
|
|
|
const SettingsScreen = ( { activePanel, setActivePanel } ) => {
|
|
const tabs = getSettingsTabs();
|
|
const { Component } = tabs.find( ( tab ) => tab.name === activePanel );
|
|
|
|
return (
|
|
<>
|
|
<SettingsNavigation
|
|
tabs={ tabs }
|
|
activePanel={ activePanel }
|
|
setActivePanel={ setActivePanel }
|
|
/>
|
|
<Container page="settings">{ Component }</Container>
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default SettingsScreen;
|