import { Button } from '@automattic/components'; import { FREE_THEME } from '@automattic/design-picker'; import { isDesktop } from '@automattic/viewport'; import { localize, translate } from 'i18n-calypso'; import { buildUpgradeFunction } from 'calypso/lib/signup/step-actions'; import { getHidePlanPropsBasedOnThemeType } from 'calypso/my-sites/plans-features-main/components/utils/utils'; import PlansStep from 'calypso/signup/steps/plans'; type SignupDependencies = { themeType: string | null; styleVariation: string | null; }; function PlansThemePreselectedStep( props: object & { signupDependencies: SignupDependencies } ) { const hidePlanProps = getHidePlanPropsBasedOnThemeType( props.signupDependencies.themeType || '' ); const freePlanButton = ( // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment