Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
import { ComponentProps } from 'react';
import useGuidedTours from 'calypso/a8c-for-agencies/data/guided-tours/use-guided-tours';
import {
A4A_ONBOARDING_TOURS_PREFERENCE_NAME,
A4A_ONBOARDING_TOURS_EVENT_NAMES,
} from 'calypso/a8c-for-agencies/sections/onboarding-tours/constants';
import { GuidedTourContextProvider } from 'calypso/components/guided-tour/data/guided-tour-context';
import BaseLayout from 'calypso/layout/hosting-dashboard';
import { withOnboardingTour } from '../hoc/with-onboarding-tour';
import './style.scss';
const Layout = withOnboardingTour( BaseLayout );
export function LayoutWithGuidedTour( { ...props }: ComponentProps< typeof Layout > ) {
const guidedTours = useGuidedTours();
return (
<GuidedTourContextProvider
guidedTours={ guidedTours }
preferenceNames={ A4A_ONBOARDING_TOURS_PREFERENCE_NAME }
eventNames={ A4A_ONBOARDING_TOURS_EVENT_NAMES }
>
<Layout { ...props } />
</GuidedTourContextProvider>
);
}