mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
23 lines
611 B
JavaScript
23 lines
611 B
JavaScript
import TabNavigation from '../ReusableComponents/TabNavigation';
|
|
import { getSettingsTabs } from './tabs';
|
|
import { useOnboardingStep } from '../../data';
|
|
import Onboarding from './Onboarding/Onboarding';
|
|
|
|
const Settings = () => {
|
|
const onboardingProgress = useOnboardingStep();
|
|
|
|
if ( ! onboardingProgress.isReady ) {
|
|
// TODO: Use better loading state indicator.
|
|
return <div>Loading...</div>;
|
|
}
|
|
|
|
if ( ! onboardingProgress.completed ) {
|
|
return <Onboarding />;
|
|
}
|
|
|
|
const tabs = getSettingsTabs( onboardingProgress );
|
|
|
|
return <TabNavigation tabs={ tabs }></TabNavigation>;
|
|
};
|
|
|
|
export default Settings;
|