old_contents: /**
   * Thank with Google SetupPublicationActive component.
   *
   * Site Kit by Google, Copyright 2022 Google LLC
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     https://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  /**
   * External dependencies
   */
  import PropTypes from 'prop-types';
  
  /**
   * WordPress dependencies
   */
  import { useCallback } from '@wordpress/element';
  import { __ } from '@wordpress/i18n';
  
  /**
   * Internal dependencies
   */
  import Data from 'googlesitekit-data';
  import Button from '../../../../components/Button';
  import useViewContext from '../../../../hooks/useViewContext';
  import { trackEvent } from '../../../../util';
  import { MODULES_THANK_WITH_GOOGLE } from '../../datastore/constants';
  import SetupPublicationScreen from './SetupPublicationScreen';
  const { useDispatch } = Data;
  
  export default function SetupPublicationActive( { currentPublicationID } ) {
  	const { setPublicationID } = useDispatch( MODULES_THANK_WITH_GOOGLE );
  
  	const viewContext = useViewContext();
  
  	const handleSetupCustomize = useCallback( async () => {
  		await trackEvent(
  			`${ viewContext }_thank-with-google`,
  			'customize'
  		);
  		setPublicationID( currentPublicationID );
  	}, [ currentPublicationID, setPublicationID, viewContext ] );
  
  	return (
  		<SetupPublicationScreen
  			title={ __( 'Setup almost complete!', 'google-site-kit' ) }
  			description={ __(
  				'Thank with Google is now active. To complete setup, customize its appearance on your site.',
  				'google-site-kit'
  			) }
  		>
  			<Button
  				onClick={ handleSetupCustomize }
  				aria-label={ __(
  					'Customize Thank with Google',
  					'google-site-kit'
  				) }
  			>
  				{ __( 'Customize Thank with Google', 'google-site-kit' ) }
  			</Button>
  		</SetupPublicationScreen>
  	);
  }
  
  SetupPublicationActive.propTypes = {
  	currentPublicationID: PropTypes.string.isRequired,
  };
  
new_contents: /**
   * Thank with Google SetupPublicationActive component.
   *
   * Site Kit by Google, Copyright 2022 Google LLC
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
   *
   *     https://www.apache.org/licenses/LICENSE-2.0
   *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  
  /**
   * External dependencies
   */
  import PropTypes from 'prop-types';
  
  /**
   * WordPress dependencies
   */
  import { useCallback } from '@wordpress/element';
  import { __ } from '@wordpress/i18n';
  
  /**
   * Internal dependencies
   */
  import Data from 'googlesitekit-data';
  import Button from '../../../../components/Button';
  import useViewContext from '../../../../hooks/useViewContext';
  import { trackEvent } from '../../../../util';
  import { MODULES_THANK_WITH_GOOGLE } from '../../datastore/constants';
  import SetupPublicationScreen from './SetupPublicationScreen';
  const { useDispatch } = Data;
  
  export default function SetupPublicationActive( { currentPublicationID } ) {
  	const { setPublicationID } = useDispatch( MODULES_THANK_WITH_GOOGLE );
  
  	const viewContext = useViewContext();
  
  	const handleSetupCustomize = useCallback( async () => {
  		await trackEvent( `${ viewContext }_thank-with-google`, 'customize' );
  		setPublicationID( currentPublicationID );
  	}, [ currentPublicationID, setPublicationID, viewContext ] );
  
  	return (
  		<SetupPublicationScreen
  			title={ __( 'Setup almost complete!', 'google-site-kit' ) }
  			description={ __(
  				'Thank with Google is now active. To complete setup, customize its appearance on your site.',
  				'google-site-kit'
  			) }
  		>
  			<Button
  				onClick={ handleSetupCustomize }
  				aria-label={ __(
  					'Customize Thank with Google',
  					'google-site-kit'
  				) }
  			>
  				{ __( 'Customize Thank with Google', 'google-site-kit' ) }
  			</Button>
  		</SetupPublicationScreen>
  	);
  }
  
  SetupPublicationActive.propTypes = {
  	currentPublicationID: PropTypes.string.isRequired,
  };
  
subject: Make prettier happy.