mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
22 lines
650 B
JavaScript
22 lines
650 B
JavaScript
import { StylingHooks } from '../../../../data';
|
|
import PreviewPanel from '../Components/Styling/PreviewPanel';
|
|
import SettingsPanel from '../Components/Styling/SettingsPanel';
|
|
import SpinnerOverlay from '../../../ReusableComponents/SpinnerOverlay';
|
|
|
|
const TabStyling = () => {
|
|
const { isReady } = StylingHooks.useStore();
|
|
const { location, setLocation } = StylingHooks.useStylingLocation();
|
|
|
|
if ( ! isReady ) {
|
|
return <SpinnerOverlay />;
|
|
}
|
|
|
|
return (
|
|
<div className="ppcp-r-styling">
|
|
<SettingsPanel location={ location } setLocation={ setLocation } />
|
|
<PreviewPanel location={ location } />
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default TabStyling;
|